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