11 lines
254 B
Plaintext
11 lines
254 B
Plaintext
=== tests/cases/compiler/contextualTyping34.ts ===
|
|
var foo = <{ id: number;}> ({id:4});
|
|
>foo : { id: number; }
|
|
><{ id: number;}> ({id:4}) : { id: number; }
|
|
>id : number
|
|
>({id:4}) : { id: number; }
|
|
>{id:4} : { id: number; }
|
|
>id : number
|
|
>4 : 4
|
|
|