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 - Create nested types
Summary: Create nested types
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks: 136146
  Show dependency tree
 
Reported: 2008-06-16 14:35 UTC by Egor Ushakov
Modified: 2008-06-27 16:05 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 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