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

19 lines
320 B
TypeScript
Raw Normal View History

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