12 lines
339 B
Plaintext
12 lines
339 B
Plaintext
=== tests/cases/compiler/arrayLiteralInNonVarArgParameter.ts ===
|
|
function panic(val: string[], ...opt: string[]) { }
|
|
>panic : (val: string[], ...opt: string[]) => void
|
|
>val : string[]
|
|
>opt : string[]
|
|
|
|
panic([], 'one', 'two');
|
|
>panic([], 'one', 'two') : void
|
|
>panic : (val: string[], ...opt: string[]) => void
|
|
>[] : undefined[]
|
|
|