10 lines
259 B
Text
10 lines
259 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
|
|
>4 : number
|
|
|