TypeScript/tests/baselines/reference/arrayLiteralInNonVarArgParameter.types

12 lines
339 B
Text
Raw Normal View History

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