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