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