-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issue
Milestone

Description
TypeScript Version: 2.8.0-dev.20180228
Code
function f() {}
f.prototype.bar = function(){
this.x = 1;
};
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
containing x
.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issue