[Issue 8389] New: Classes, nested in the same base class cannot be derived from.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 13 23:26:05 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8389
Summary: Classes, nested in the same base class cannot be
derived from.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: gor at boloneum.com
--- Comment #0 from Gor Gyolchanyan <gor at boloneum.com> 2012-07-13 23:26:04 PDT ---
class Fruit
{
class Seed {} // Not static, because this.outer is necessary
}
class Apple: Fruit
{
class RedAppleSeed: Fruit.Seed {}
class GreenAppleSeed: Fruit.Seed {}
}
DMD 2.059:
Error: class main.Apple.RedAppleSeed is nested within Apple, but super class
Seed is nested within Fruit
Error: class main.Apple.GreenAppleSeed is nested within Apple, but super class
Seed is nested within Fruit
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list