2015-02-23 02:59:24 +01:00
|
|
|
//// [functionWithDefaultParameterWithNoStatements11.ts]
|
|
|
|
var v: any[];
|
|
|
|
|
|
|
|
function foo(a = v[0]) { }
|
|
|
|
|
|
|
|
function bar(a = v[0]) {
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements11.js]
|
|
|
|
var v;
|
2015-02-23 05:51:34 +01:00
|
|
|
function foo(a) {
|
|
|
|
if (a === void 0) { a = v[0]; }
|
|
|
|
}
|
2015-02-23 02:59:24 +01:00
|
|
|
function bar(a) {
|
2015-02-23 05:51:34 +01:00
|
|
|
if (a === void 0) { a = v[0]; }
|
2015-02-23 02:59:24 +01:00
|
|
|
}
|