[Issue 14676] New: Calling the constructor of the parent class of an anonymous class
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 10 08:09:21 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14676
Issue ID: 14676
Summary: Calling the constructor of the parent class of an
anonymous class
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: sigurdbergsvela at gmail.com
As an enhancement; the ability to call the constructor of the parent class when
creating an anonymous class.
class A {
this(int param) {
}
}
A anonymous = new class A(12) {}
^ ^
--
More information about the Digitalmars-d-bugs
mailing list