00d4b4cb50
Fixes bug #4404
30 lines
512 B
Plaintext
30 lines
512 B
Plaintext
=== tests/cases/conformance/jsx/tsxElementResolution13.tsx ===
|
|
declare module JSX {
|
|
>JSX : any
|
|
|
|
interface Element { }
|
|
>Element : Element
|
|
|
|
interface ElementAttributesProperty { pr1: any; pr2: any; }
|
|
>ElementAttributesProperty : ElementAttributesProperty
|
|
>pr1 : any
|
|
>pr2 : any
|
|
}
|
|
|
|
interface Obj1 {
|
|
>Obj1 : Obj1
|
|
|
|
new(n: string): any;
|
|
>n : string
|
|
}
|
|
var obj1: Obj1;
|
|
>obj1 : Obj1
|
|
>Obj1 : Obj1
|
|
|
|
<obj1 x={10} />; // Error
|
|
><obj1 x={10} /> : JSX.Element
|
|
>obj1 : Obj1
|
|
>x : any
|
|
>10 : number
|
|
|