14 lines
344 B
Text
14 lines
344 B
Text
=== tests/cases/compiler/contextualTyping18.ts ===
|
|
var foo: {id:number;} = <{id:number;}>({ }); foo = {id: 5};
|
|
>foo : { id: number; }
|
|
>id : number
|
|
><{id:number;}>({ }) : { id: number; }
|
|
>id : number
|
|
>({ }) : {}
|
|
>{ } : {}
|
|
>foo = {id: 5} : { id: number; }
|
|
>foo : { id: number; }
|
|
>{id: 5} : { id: number; }
|
|
>id : number
|
|
>5 : number
|
|
|