// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import * as React from "react"; interface BaseProps { initialValues: T; nextValues: (cur: T) => T; } declare class GenericComponent extends React.Component, {}> { iv: Values; } let a = a} />; // No error let b = a} />; // No error - Values should be reinstantiated with `number` (since `object` is a default, not a constraint) let c = ({ x: a.x })} />; // No Error let d = a.x} />; // Error - `string` is not assignable to `{x: string}`