TypeScript Version: 2.8.0-dev.20180228
Code
functionf(){}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.
TypeScript Version: 2.8.0-dev.20180228
Code
Highlight the second
functionkeyword. 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
.memberscontainingx.