| Summary: | [inferencing] Support the @returns tag during type inferencing | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | 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: | |||
Fix + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=07a7e2fd21db286e2018253fd9a43c8424ae2a6e All tests pass. |
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>