10 lines
392 B
Text
10 lines
392 B
Text
=== tests/cases/compiler/contextualTyping29.ts ===
|
|
function foo(param:number[]){}; foo([1, 3]);
|
|
>foo : (param: number[]) => void, Symbol(foo,Decl(contextualTyping29.ts,0,0))
|
|
>param : number[], Symbol(param,Decl(contextualTyping29.ts,0,13))
|
|
>foo([1, 3]) : void
|
|
>foo : (param: number[]) => void, Symbol(foo,Decl(contextualTyping29.ts,0,0))
|
|
>[1, 3] : number[]
|
|
>1 : number
|
|
>3 : number
|
|
|