10 lines
246 B
Text
10 lines
246 B
Text
|
=== 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
|
||
|
|