mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
43 lines
630 B
TypeScript
43 lines
630 B
TypeScript
//// [tests/cases/conformance/jsx/tsxElementResolution7.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements { }
|
|
}
|
|
|
|
namespace my {
|
|
export var div: any;
|
|
}
|
|
// OK
|
|
<my.div n='x' />;
|
|
// Error
|
|
<my.other />;
|
|
|
|
namespace q {
|
|
import mine = my;
|
|
// OK
|
|
<mine.div n='x' />;
|
|
// Error
|
|
<mine.non />;
|
|
}
|
|
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
var my;
|
|
(function (my) {
|
|
})(my || (my = {}));
|
|
// OK
|
|
<my.div n='x'/>;
|
|
// Error
|
|
<my.other />;
|
|
var q;
|
|
(function (q) {
|
|
var mine = my;
|
|
// OK
|
|
<mine.div n='x'/>;
|
|
// Error
|
|
<mine.non />;
|
|
})(q || (q = {}));
|