TypeScript/tests/baselines/reference/contextualTyping26.types

13 lines
589 B
Plaintext
Raw Normal View History

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