9 lines
219 B
Text
9 lines
219 B
Text
|
=== tests/cases/compiler/contextualTyping31.ts ===
|
||
|
function foo(param:number[]){}; foo([1]);
|
||
|
>foo : (param: number[]) => void
|
||
|
>param : number[]
|
||
|
>foo([1]) : void
|
||
|
>foo : (param: number[]) => void
|
||
|
>[1] : number[]
|
||
|
|