Project: aptanastudio
Issue APSTUD-4127: JS inferencing shows instances of conventional prototype inheritance as the constructors prototype
In the following snippet, conventional prototype inheritance is being setup on the MyClass function. When the "new" operator is used with MyClass, it returns a new instance of whatever type is hanging off of MyClass.prototype. When viewing properties on "instance", the content assist popup will display the type as "MyClass.prototype", but it should show as "MyClass". We have a class that is responsible for formatting content in the context info popup. We should simply remove ".prototype" from types, for display purposes only. {code:title=Prototype Inheritance.js} function MyClass() {} MyClass.prototype.property = 10; MyClass.prototype.method = function() {}; var instance = new MyClass; {code}
Story points: 1