Files
tsgo/testdata/baselines/reference/submodule/conformance/tsxElementResolution14.js

19 lines
286 B
TypeScript

//// [tests/cases/conformance/jsx/tsxElementResolution14.tsx] ////
//// [file.tsx]
declare namespace JSX {
interface Element { }
}
interface Obj1 {
new(n: string): {};
}
var obj1: Obj1;
<obj1 x={10} />; // OK
//// [file.jsx]
"use strict";
var obj1;
<obj1 x={10}/>; // OK