[Bug 80] New: Cannot instantiate nested class in nested function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 1 20:33:19 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=80
Summary: Cannot instantiate nested class in nested function
Product: D
Version: 0.150
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jarrett.billingsley at gmail.com
Interesting!
class A
{
class B
{
}
void fork()
{
B b = new B(); // This is okay
void knife()
{
B b = new B(); // No 'this' for nested class B
}
}
}
Blocked me from doing something rather elegant.
--
More information about the Digitalmars-d-bugs
mailing list