// @filename: file.tsx // @jsx: preserve // @module: amd // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react') declare function ComponentSpecific1(l: {prop: U, "ignore-prop": string}): JSX.Element; declare function ComponentSpecific2(l: {prop: U}): JSX.Element; // Error function Bar(arg: T) { let a1 = ; } // Error function Baz(arg: T) { let a0 = } declare function Link(l: {func: (arg: U)=>void}): JSX.Element; // Error function createLink(func: (a: number, b: string)=>void) { let o = } interface InferParamProp { values: Array; selectHandler: (selectedVal: T) => void; } declare function InferParamComponent(attr: InferParamProp): JSX.Element; // Error let i = { }} />;