Bug 2342 – derived nested classes in derived outer class.
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-09-07T07:59:00Z
Last change time
2014-03-01T00:36:15Z
Keywords
rejects-valid
Assigned to
nobody
Creator
benoit
Comments
Comment #0 by benoit — 2008-09-07T07:59:24Z
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 by helmutduregger — 2009-01-20T05:07:39Z