swc/crates/swc_ecma_parser/tests/tsc/tsxElementResolution7.tsx
2022-02-04 17:08:38 +09:00

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