// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react'); interface PoisonedProp { x: string; y: 2; } class Poisoned extends React.Component { render() { return
Hello
; } } const obj: PoisonedProp = { x: "hello world", y: 2 }; // OK let p = ; class EmptyProp extends React.Component<{}, {}> { render() { return
Default hi
; } } // OK let j: any; let e1 = ; let e2 = let e3 = { this.textInput = input; } }} /> let e4 = let e5 =