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

18 lines
329 B
TypeScript

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