13 lines
346 B
Text
13 lines
346 B
Text
|
=== tests/cases/compiler/contextualTyping26.ts ===
|
||
|
function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
|
||
|
>foo : (param: { id: number; }) => void
|
||
|
>param : { id: number; }
|
||
|
>id : number
|
||
|
>foo(<{id:number;}>({})) : void
|
||
|
>foo : (param: { id: number; }) => void
|
||
|
><{id:number;}>({}) : { id: number; }
|
||
|
>id : number
|
||
|
>({}) : {}
|
||
|
>{} : {}
|
||
|
|