56cf2e68e8
* Never-reducing intersections are not untyped function call targets * Don’t attempt to reduce union types
11 lines
461 B
Plaintext
11 lines
461 B
Plaintext
=== tests/cases/conformance/types/never/neverIntersectionNotCallable.ts ===
|
|
declare const f: { (x: string): number, a: "" } & { a: number }
|
|
>f : Symbol(f, Decl(neverIntersectionNotCallable.ts, 0, 13))
|
|
>x : Symbol(x, Decl(neverIntersectionNotCallable.ts, 0, 20))
|
|
>a : Symbol(a, Decl(neverIntersectionNotCallable.ts, 0, 39))
|
|
>a : Symbol(a, Decl(neverIntersectionNotCallable.ts, 0, 51))
|
|
|
|
f()
|
|
>f : Symbol(f, Decl(neverIntersectionNotCallable.ts, 0, 13))
|
|
|