17 lines
302 B
Text
17 lines
302 B
Text
=== tests/cases/compiler/typeInferenceFixEarly.ts ===
|
|
declare function f<T>(p: (t: T) => T): T;
|
|
>f : <T>(p: (t: T) => T) => T
|
|
>T : T
|
|
>p : (t: T) => T
|
|
>t : T
|
|
>T : T
|
|
>T : T
|
|
>T : T
|
|
|
|
f(n => 3);
|
|
>f(n => 3) : {}
|
|
>f : <T>(p: (t: T) => T) => T
|
|
>n => 3 : (n: {}) => number
|
|
>n : {}
|
|
>3 : number
|
|
|