TypeScript/tests/cases/conformance/jsx/tsxElementResolution16.tsx

12 lines
209 B
TypeScript
Raw Normal View History

2015-06-18 23:03:43 +02:00
//@filename: file.tsx
//@jsx: preserve
//@noImplicitAny: true
2015-06-18 23:03:43 +02:00
declare module JSX {
}
interface Obj1 {
new(n: string): {};
}
var obj1: Obj1;
<obj1 x={10} />; // Error (JSX.Element is implicit any)