Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Content assist does not work it returned type is defined further down the script #303

Open
nknapp opened this issue Oct 23, 2014 · 0 comments

Comments

@nknapp
Copy link

nknapp commented Oct 23, 2014

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.

When I enter obj2(). and hit Ctrl+Space, Content-Assist does not suggest myFunction2(),
which it should do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant