14 lines
331 B
Plaintext
14 lines
331 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
|
||
|
|