10 lines
249 B
Text
10 lines
249 B
Text
=== tests/cases/compiler/contextualTyping2.ts ===
|
|
var foo: {id:number;} = {id:4, name:"foo"};
|
|
>foo : { id: number; }
|
|
>id : number
|
|
>{id:4, name:"foo"} : { id: number; name: string; }
|
|
>id : number
|
|
>4 : number
|
|
>name : string
|
|
>"foo" : string
|
|
|