10 lines
227 B
Plaintext
10 lines
227 B
Plaintext
=== tests/cases/compiler/contextualTyping28.ts ===
|
|
function foo(param:number[]){}; foo([1]);
|
|
>foo : (param: number[]) => void
|
|
>param : number[]
|
|
>foo([1]) : void
|
|
>foo : (param: number[]) => void
|
|
>[1] : number[]
|
|
>1 : 1
|
|
|