17 lines
355 B
Text
17 lines
355 B
Text
=== tests/cases/compiler/typeInferenceWithTypeAnnotation.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: number) => n);
|
|
>f((n: number) => n) : number
|
|
>f : <T>(p: (t: T) => T) => T
|
|
>(n: number) => n : (n: number) => number
|
|
>n : number
|
|
>n : number
|
|
|