False positive for convert function to ES6 class #22240
Labels
Bug
A bug in TypeScript
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.8.0-dev.20180228
Code
Highlight the second
function
keyword. You will get a suggestion to convert it to an ES6 class -- actually attempting to apply the suggestion does not work.This happens because apparently the function expression has a non-empty
.members
containingx
.The text was updated successfully, but these errors were encountered: