10 lines
247 B
Text
10 lines
247 B
Text
|
=== tests/cases/compiler/contextualTyping4.ts ===
|
||
|
class foo { public bar:{id:number;} = {id:5, name:"foo"}; }
|
||
|
>foo : foo
|
||
|
>bar : { id: number; }
|
||
|
>id : number
|
||
|
>{id:5, name:"foo"} : { id: number; name: string; }
|
||
|
>id : number
|
||
|
>name : string
|
||
|
|