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

19 lines
321 B
TypeScript

// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');
interface Prop {
x: false;
}
class Poisoned extends React.Component<Prop, {}> {
render() {
return <div>Hello</div>;
}
}
// Error
let p = <Poisoned x/>;