Open nknapp opened 10 years ago
Consider the following code snippet:
var MyObj1 = function() { }; MyObj1.prototype.myFunction1 = function() { }; /** * @return {MyObj1} **/ function obj1() { return } /** * @return {MyObj2} **/ function obj2() { return } var MyObj2 = function() { }; MyObj2.prototype.myFunction2 = function() { };
Below this code, I enter obj1(). and hit Ctrl+Space and Content-Assist to complete the statement with myFunction1(), which is correct.
obj1().
myFunction1()
When I enter obj2(). and hit Ctrl+Space, Content-Assist does not suggest myFunction2(), which it should do.
obj2().
myFunction2()
Consider the following code snippet:
Below this code, I enter
obj1().
and hit Ctrl+Space and Content-Assist to complete the statement withmyFunction1()
, which is correct.When I enter
obj2().
and hit Ctrl+Space, Content-Assist does not suggestmyFunction2()
, which it should do.