TypeScript/tests/cases/conformance/types/never/neverIntersectionNotCallable.ts
Andrew Branch 56cf2e68e8
Never-reducing intersections are not untyped function call targets (#42917)
* Never-reducing intersections are not untyped function call targets

* Don’t attempt to reduce union types
2021-02-23 17:22:41 -08:00

2 lines
68 B
TypeScript

declare const f: { (x: string): number, a: "" } & { a: number }
f()