8 lines
165 B
Text
8 lines
165 B
Text
|
=== tests/cases/compiler/contextualTyping1.ts ===
|
||
|
var foo: {id:number;} = {id:4};
|
||
|
>foo : { id: number; }
|
||
|
>id : number
|
||
|
>{id:4} : { id: number; }
|
||
|
>id : number
|
||
|
|