TypeScript/tests/baselines/reference/selfReference.types

15 lines
343 B
Plaintext

=== tests/cases/compiler/selfReference.ts ===
declare function asFunction<T>(value: T): () => T;
>asFunction : <T>(value: T) => () => T
>T : T
>value : T
>T : T
>T : T
asFunction(() => { return 1; });
>asFunction(() => { return 1; }) : () => () => 1
>asFunction : <T>(value: T) => () => T
>() => { return 1; } : () => 1
>1 : 1