TypeScript/tests/cases/compiler/intersectionTypeInference1.ts
Anders Hejlsberg 6a27289b2d Add test
2016-05-25 11:17:03 -07:00

8 lines
293 B
TypeScript

// Repro from #8801
function alert(s: string) {}
const parameterFn = (props:{store:string}) => alert(props.store)
const brokenFunction = <OwnProps>(f: (p: {dispatch: number} & OwnProps) => void) => (o: OwnProps) => o
export const Form3 = brokenFunction(parameterFn)({store: "hello"})