24 lines
350 B
Plaintext
24 lines
350 B
Plaintext
=== tests/cases/conformance/jsx/tsxElementResolution14.tsx ===
|
|
declare module JSX {
|
|
>JSX : any
|
|
|
|
interface Element { }
|
|
>Element : Element
|
|
}
|
|
|
|
interface Obj1 {
|
|
>Obj1 : Obj1
|
|
|
|
new(n: string): {};
|
|
>n : string
|
|
}
|
|
var obj1: Obj1;
|
|
>obj1 : Obj1
|
|
>Obj1 : Obj1
|
|
|
|
<obj1 x={10} />; // OK
|
|
><obj1 x={10} /> : JSX.Element
|
|
>obj1 : Obj1
|
|
>x : any
|
|
|