2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTyping25.ts ===
|
|
|
|
function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo(<{id:number;}>({})) : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping25.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
><{id:number;}>({}) : { id: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>id : number, Symbol(id, Decl(contextualTyping25.ts, 0, 42))
|
2014-08-15 23:33:16 +02:00
|
|
|
>({}) : {}
|
|
|
|
>{} : {}
|
|
|
|
|