We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
return
TypeScript Version: nightly (2.6.0-dev.20170904)
Code
export function f() { if (1) { return 1; } ...do stuff... } export function g() { ...do stuff... if (1) { return 1; } }
Expected behavior:
Able to extract the if statement out of g. Not able to extract from f because that would change the control flow.
if
g
f
Actual behavior:
Not able to extract in either case. (But somehow it works in #18091?)