56cf2e68e8
* Never-reducing intersections are not untyped function call targets * Don’t attempt to reduce union types
8 lines
158 B
TypeScript
8 lines
158 B
TypeScript
//// [neverIntersectionNotCallable.ts]
|
|
declare const f: { (x: string): number, a: "" } & { a: number }
|
|
f()
|
|
|
|
|
|
//// [neverIntersectionNotCallable.js]
|
|
f();
|