2015-02-23 02:59:24 +01:00
|
|
|
//// [functionWithDefaultParameterWithNoStatements10.ts]
|
|
|
|
function foo(a = [0]) { }
|
|
|
|
|
|
|
|
function bar(a = [0]) {
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements10.js]
|
2015-02-23 21:31:40 +01:00
|
|
|
function foo(a) {
|
2015-03-26 21:46:35 +01:00
|
|
|
if (a === void 0) { a = [0]; }
|
2015-02-23 21:31:40 +01:00
|
|
|
}
|
2015-02-23 02:59:24 +01:00
|
|
|
function bar(a) {
|
2015-03-26 21:46:35 +01:00
|
|
|
if (a === void 0) { a = [0]; }
|
2015-02-23 02:59:24 +01:00
|
|
|
}
|