mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
354 B
TypeScript
20 lines
354 B
TypeScript
//// [tests/cases/conformance/jsx/tsxElementResolution13.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface ElementAttributesProperty { pr1: any; pr2: any; }
|
|
}
|
|
|
|
interface Obj1 {
|
|
new(n: string): any;
|
|
}
|
|
var obj1: Obj1;
|
|
<obj1 x={10} />; // Error
|
|
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
var obj1;
|
|
<obj1 x={10}/>; // Error
|