Closed
Description
Babel works correctly.
TypeScript Version: master
Code
f();
function f(o = {g}) {
return console.log(o.g());
function g() {
return 1;
}
}
function g() {
return 0;
}
Expected behavior:
$ node built/local/tsc.js index.ts && node index.js
0
$ node index.ts
0
Actual behavior:
$ node built/local/tsc.js index.ts && node index.js
1
$ node index.ts
0