swc/crates/swc_ecma_parser/tests/tsc/tsxElementResolution7.tsx

23 lines
306 B
TypeScript
Raw Normal View History

//@filename: file.tsx
//@jsx: preserve
declare module JSX {
interface Element { }
interface IntrinsicElements { }
}
module my {
export var div: any;
}
// OK
<my.div n='x' />;
// Error
<my.other />;
module q {
import mine = my;
// OK
<mine.div n='x' />;
// Error
<mine.non />;
}