12 lines
574 B
Text
12 lines
574 B
Text
=== tests/cases/compiler/contextualTyping25.ts ===
|
|
function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
|
|
>foo : (param: { id: number; }) => void, Symbol(foo,Decl(contextualTyping25.ts,0,0))
|
|
>param : { id: number; }, Symbol(param,Decl(contextualTyping25.ts,0,13))
|
|
>id : number, Symbol(id,Decl(contextualTyping25.ts,0,20))
|
|
>foo(<{id:number;}>({})) : void
|
|
>foo : (param: { id: number; }) => void, Symbol(foo,Decl(contextualTyping25.ts,0,0))
|
|
><{id:number;}>({}) : { id: number; }
|
|
>id : number, Symbol(id,Decl(contextualTyping25.ts,0,42))
|
|
>({}) : {}
|
|
>{} : {}
|
|
|