mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
19 lines
320 B
TypeScript
19 lines
320 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: boolean;
|
||
|
}
|
||
|
class Poisoned extends React.Component<Prop, {}> {
|
||
|
render() {
|
||
|
return <div>Hello</div>;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// OK
|
||
|
let p = <Poisoned x/>;
|