[Issue 9739] New: DMD not considering ctor with default args as default ctor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 16 20:06:55 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9739
Summary: DMD not considering ctor with default args as default
ctor
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: puneet at coverify.org
--- Comment #0 from Puneet Goel <puneet at coverify.org> 2013-03-16 20:06:54 PDT ---
Compiles with 2.062. But with the latest github snapshot, gives me an error:
$ rdmd --force test.d
test.d(5): Error: class test.Bar Cannot implicitly generate a default ctor when
base class test.Foo is missing a default ctor
Failed: 'dmd' '-v' '-o-' 'test.d' '-I.'
class Foo {
this(int arg=0) { }
}
class Bar: Foo { }
void main() {
Bar test = new Bar;
}
--
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