This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
code hints in inherited class by Class.create not showing, later use guess hint causes existing hint changed #3660
Open
Description
- following following code snippet, try to get code hint after
bruce.
var Vulnerable = {
wound: function (hp) {
this.health -= hp;
},
kill: function () {
}
};
var Person = Class.create(Vulnerable, {
initialize: function () {
this.health = 100;
}
});
var bruce = new Person();
bruce.
->code hints are: kill, wound, missing "initialize".
2. type initialize() after "bruce.".
3. get code hint by type bruce. again
->code hints now: initialize, wound, "kill" is removed
Expect:
at step 1, "initialize" should be found.
at step 3, code hint should be: initialize, kill, wound