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