// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts // @strictNullChecks: true import React = require('react'); interface ButtonProp { a: number, b: string, children: Button; } class Button extends React.Component { render() { // Error children are specified twice return (
Hello World
); } } interface InnerButtonProp { a: number } class InnerButton extends React.Component { render() { return (); } }