TypeScript/tests/baselines/reference/defaultValueInFunctionOverload1.js

9 lines
201 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [defaultValueInFunctionOverload1.ts]
function foo(x: string = '');
function foo(x = '') { }
//// [defaultValueInFunctionOverload1.js]
function foo(x) {
if (x === void 0) { x = ''; }
}