-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
TypeScript Version: 2.2.2
Code
/**
* @class
*/
function MyClass() { this.xyz = 1; }
MyClass.prototype = { abc: 2 };
const x = new MyClass()
Expected behavior:
Suggestions on x
know about the property xyz
from the class itself, and abc
from the prototype
Actual behavior:
Only a suggestion for xyz
is shown
siphomateke, danyfoo, yln99517 and johnrees
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue