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

17 lines
371 B
TypeScript

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