mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
20 lines
331 B
TypeScript
20 lines
331 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: preserve
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react');
|
|
|
|
class Poisoned extends React.Component<{}, {}> {
|
|
render() {
|
|
return <div>Hello</div>;
|
|
}
|
|
}
|
|
|
|
const obj = {};
|
|
|
|
// OK
|
|
let p = <Poisoned {...obj} />;
|
|
let y = <Poisoned />;
|