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