// @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 } declare class MyComp

extends React.Component { internalProp: P; } let x = a={10} b="hi" />; // OK x = a={10} b="hi">; // OK x = a={10} b={20} />; // error x = a={10} b={20}>; // error x = a={10} b="hi" />; // error x = a={10} b="hi">; // error x = a={10} b="hi" />; // error x = a={10} b="hi">; // error x= /> // OK x= > // OK declare class MyComp2

extends React.Component

{ internalProp: [P, P2]; } x = a="a" b="b" />; // OK x = a="a" b="b">; // OK x = a={10} b="hi" />; // error x = a={10} b="hi">; // error x = a="hi" b="hi" />; // OK x = a="hi" b="hi">; // OK x = a="hi" b="hi" />; // error x = a="hi" b="hi">; // error x = a="hi" b="hi" />; // error x = a="hi" b="hi">; // error