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

23 lines
306 B
TypeScript

//@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 />;
}