This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245554 - Method calls are not resolved correctly after an array
Summary: Method calls are not resolved correctly after an array
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-10 14:19 UTC by Petr Pisl
Modified: 2014-07-10 14:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2014-07-10 14:19:38 UTC
Have a code:

function test() {
    return [0, 1, 2, 3].join('');
}

The return type of the test function is resolved as array, but this is wrong. If the code is written in this way

function test() {
    var a = [0, 1, 2, 3];
    return a.join('');
}

then the return type is String which is right.