10 lines
279 B
Plaintext
10 lines
279 B
Plaintext
|
=== tests/cases/compiler/contextualTyping35.ts ===
|
||
|
var foo = <{ id: number;}> {id:4, name: "as"};
|
||
|
>foo : { id: number; }
|
||
|
><{ id: number;}> {id:4, name: "as"} : { id: number; }
|
||
|
>id : number
|
||
|
>{id:4, name: "as"} : { id: number; name: string; }
|
||
|
>id : number
|
||
|
>name : string
|
||
|
|