TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements11.js

14 lines
240 B
JavaScript
Raw Normal View History

//// [functionWithDefaultParameterWithNoStatements11.ts]
var v: any[];
function foo(a = v[0]) { }
function bar(a = v[0]) {
}
//// [functionWithDefaultParameterWithNoStatements11.js]
var v;
function foo(a) { }
function bar(a) {
}