TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements9.js
Cyrus Najmabadi 8d0dc91d64 CR feedback.
2015-02-22 20:51:34 -08:00

14 lines
318 B
TypeScript

//// [functionWithDefaultParameterWithNoStatements9.ts]
function foo(a = console.log) { }
function bar(a = console.log) {
}
//// [functionWithDefaultParameterWithNoStatements9.js]
function foo(a) {
if (a === void 0) { a = console.log; }
}
function bar(a) {
if (a === void 0) { a = console.log; }
}