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