2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-10-13 15:56:58 +02:00
|
|
|
>[] : undefined[]
|
2014-08-15 23:33:16 +02:00
|
|
|
|