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

Summary: Method calls are not resolved correctly after an array
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.