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 - Property type not resolved completely with multiple assignment on one line
Summary: Property type not resolved completely with multiple assignment on one line
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 07:02 UTC by Vladimir Riha
Modified: 2013-08-21 07:02 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 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)