Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 459499

Summary: [inferencing] Support the @returns tag during type inferencing
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mamacdon
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-02-09 14:47:17 EST
Consider the following snippet:

var f = {
    /**
     * @returns {Array.<String>} Returns an array of strings or the empty array, never null.
     */
    one: function() {},
    two: o//<-- assist here
};

Steps:
1.activate assist where indicated
2. notice the return type of 'one' is shown as 'undefined'
3. change the @returns to @return
4. activate assist
5. notice the rerurn type is correct -> Array.<String>