15 lines
404 B
Text
15 lines
404 B
Text
=== tests/cases/compiler/contextualTyping17.ts ===
|
|
var foo: {id:number;} = {id:4}; foo = {id: 5, name:"foo"};
|
|
>foo : { id: number; }
|
|
>id : number
|
|
>{id:4} : { id: number; }
|
|
>id : number
|
|
>4 : number
|
|
>foo = {id: 5, name:"foo"} : { id: number; name: string; }
|
|
>foo : { id: number; }
|
|
>{id: 5, name:"foo"} : { id: number; name: string; }
|
|
>id : number
|
|
>5 : number
|
|
>name : string
|
|
>"foo" : string
|
|
|