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 230994 - Resolving types should be clever
Summary: Resolving types should be clever
Status: RESOLVED FIXED
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-06-09 19:02 UTC by Petr Pisl
Modified: 2013-06-11 01:43 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 2013-06-09 19:02:46 UTC
Have a code like this:

!(function () {
      
    function getInfo () {
        return "info";
    }
    
    var MyObject = {
        property01 : 10,
        property02 : "Martin",
        method01 : function (){
            return  this.property01;
        },
        method02 : function () {
            return this.property02;
        }
    }
    // simple types
    var prom01 = "ahoj";
    var prom02 = 10;
    var prom03 = prom01;
    
    var prom04 = new MyObject().method01()
    var prom05 = (new MyObject()).method02();
    
    var prom06 = getInfo();
    var prom07 = getInfo().fontsize();
    var prom08 = prom01.fontsize();
    var prom09 = prom08.toLocaleString();
    
    var prom10 = getInfo().fontcolor().small().fontsize().toPrecision(4);
    
    var prom11 = new MyObject();
    var prom12 = prom11.property01.isFrozen("ll"); 
})(); 

Types of all prom xx should be resolved correctly.
Comment 1 Petr Pisl 2013-06-10 05:31:14 UTC
Fixed in web-main:
http://hg.netbeans.org/web-main/rev/f7aeaa1fd020
Comment 2 Quality Engineering 2013-06-11 01:43:26 UTC
Integrated into 'main-golden', will be available in build *201306102301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f7aeaa1fd020
User: Petr Pisl <ppisl@netbeans.org>
Log: #230994 - Resolving types should be clever