TypeScript Version: 3.1.0-dev.20180829
Search Terms:
Code
// @target: ES2015
function test(foo: string, bar = foo) {}
Expected behavior:
No error
Actual behavior:
Error Cannot find name 'foo'. in the initializer of bar
Playground Link:
Related Issues:
#26719
caused by #26317 //cc @Kingwl