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