Files
tsgo/testdata/baselines/reference/submodule/compiler/functionWithDefaultParameterWithNoStatements15.js

17 lines
367 B
TypeScript

//// [tests/cases/compiler/functionWithDefaultParameterWithNoStatements15.ts] ////
//// [functionWithDefaultParameterWithNoStatements15.ts]
var v: any[];
function foo(a = (1 + 1)) { }
function bar(a = (1 + 1)) {
}
//// [functionWithDefaultParameterWithNoStatements15.js]
"use strict";
var v;
function foo(a = (1 + 1)) { }
function bar(a = (1 + 1)) {
}