15 lines
339 B
Plaintext
15 lines
339 B
Plaintext
=== 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 : 5
|
|
|