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 234680

Summary: Property type not resolved completely with multiple assignment on one line
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2013-08-21 07:02:26 UTC
Please try

a = {
    b: {}
};
a.b.c = a.b.d = a.b.e = function() {
    console.log(1);
};


=> type of all 3 properties (c,d,e) should be the same, but e is marked as function and the other 2 as non-function properties (d is type of a.b.e, c is type of a.b.da.b.e) so e.g. in Navigator or code completion, they have different icon.

Similar case is with

a.b.c = a.b.d = a.b.e = new Date();

where only for e, code completion shows members of Date



Product Version: NetBeans IDE Dev (Build 201308202300)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)