mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
//// [tests/cases/compiler/arrayLiteralInNonVarArgParameter.ts] ////
|
|
|
|
//// [arrayLiteralInNonVarArgParameter.ts]
|
|
function panic(val: string[], ...opt: string[]) { }
|
|
|
|
panic([], 'one', 'two');
|
|
|
|
|
|
//// [arrayLiteralInNonVarArgParameter.js]
|
|
"use strict";
|
|
function panic(val, ...opt) { }
|
|
panic([], 'one', 'two');
|