// @filename: file.tsx // @jsx: preserve // @module: amd // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react') declare function OverloadComponent(): JSX.Element; declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; // Error function Baz(arg1: T, arg2: U) { let a0 = let a2 = // missing a }