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 137316

Summary: Create nested types
Product: cnd Reporter: Egor Ushakov <gorrus>
Component: Code ModelAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 136146    

Description Egor Ushakov 2008-06-16 14:35:35 UTC
For types like
A::iterator
we should create a special nested type for iterator containing type A as a "parent".
This should solve problems with instantiated nested types like:
A<int>::iterator
Comment 1 Egor Ushakov 2008-06-16 16:56:22 UTC
Testcase:

template <X,Y> struct CLS {
    typedef X first;
};

struct Cust {
    void foo();
};

void main() {
    CLS<Cust>::first tp;
    tp.
}

completion at the end should not be empty
Comment 2 Egor Ushakov 2008-06-25 15:21:53 UTC
Fixed in the changeset:
http://hg.netbeans.org/main/rev/03f7b6aef36e
Comment 3 Quality Engineering 2008-06-27 16:05:31 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #285 build
Changeset: http://hg.netbeans.org/main/rev/ba8a12b9821b
User: Egor Ushakov <gorrus@netbeans.org>
Log: modified tests for the fix of IZ#137316