D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2342 - derived nested classes in derived outer class.
Summary: derived nested classes in derived outer class.
Status: RESOLVED DUPLICATE of issue 1175
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2008-09-07 07:59 UTC by Frank Benoit
Modified: 2014-03-01 00:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Benoit 2008-09-07 07:59:24 UTC
This should compile but does not.

class A {
    class I1{
    }
}

class B : A {
    class I2 : I1 { // line 9
    }

    I1 getI(){
        return new I2;
    }
}
void main(){}

test.d(9): class test.B.I2 is nested within B, but super class I1 is nested within A
Comment 1 helmutduregger 2009-01-20 05:07:39 UTC
Seems to be related to http://d.puremagic.com/issues/show_bug.cgi?id=1175
Comment 2 David Ferenczi 2009-09-10 05:43:28 UTC

*** This issue has been marked as a duplicate of issue 1175 ***