Allow to extract code containing return
statement if it's at the end of a function
#18256
Labels
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Experience Enhancement
Noncontroversial enhancements
Suggestion
An idea for TypeScript
Milestone
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: nightly (2.6.0-dev.20170904)
Code
Expected behavior:
Able to extract the
if
statement out ofg
.Not able to extract from
f
because that would change the control flow.Actual behavior:
Not able to extract in either case. (But somehow it works in #18091?)
The text was updated successfully, but these errors were encountered: