// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react'); interface Prop { a: number, b: string, children: Button; } class Button extends React.Component { render() { return (
My Button
) } } function Comp(p: Prop) { return
{p.b}
; } // Error: no children specified let k = ; // Error: JSX.element is not the same as JSX.ElementClass let k1 =