* Never-reducing intersections are not untyped function call targets * Don’t attempt to reduce union types
12 lines
222 B
Plaintext
12 lines
222 B
Plaintext
=== tests/cases/conformance/types/never/neverIntersectionNotCallable.ts ===
|
|
declare const f: { (x: string): number, a: "" } & { a: number }
|
|
>f : never
|
|
>x : string
|
|
>a : ""
|
|
>a : number
|
|
|
|
f()
|
|
>f() : any
|
|
>f : never
|
|
|