5d9d842a18
Fixes #10073
15 lines
343 B
Plaintext
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
|
|
|