mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
279 B
TypeScript
19 lines
279 B
TypeScript
//// [tests/cases/compiler/functionCall10.ts] ////
|
|
|
|
//// [functionCall10.ts]
|
|
function foo(...a:number[]){};
|
|
foo(0, 1);
|
|
foo('foo');
|
|
foo();
|
|
foo(1, 'bar');
|
|
|
|
|
|
//// [functionCall10.js]
|
|
"use strict";
|
|
function foo(...a) { }
|
|
;
|
|
foo(0, 1);
|
|
foo('foo');
|
|
foo();
|
|
foo(1, 'bar');
|