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

19 lines
317 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: true;
}
class Poisoned extends React.Component<Prop, {}> {
render() {
return <div>Hello</div>;
}
}
// OK
let p = <Poisoned x/>;