You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mixin template foobar()
{
this() { }
}
class One
{
mixin foobar;
this(int a) //without this ctor all will be fine
{
this(); //default ctor is available from here, but not from Two
}
};
class Two:One
{
};
...
Error: Cannot implicitly generate a default ctor when base class main.One is missing a default ctor.
Windows 7, x86_64, DMD 2.066.
The text was updated successfully, but these errors were encountered:
MarisaLovesUsAll reported this on 2014-08-22T12:00:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13355
Description
mixin template foobar() { this() { } } class One { mixin foobar; this(int a) //without this ctor all will be fine { this(); //default ctor is available from here, but not from Two } }; class Two:One { }; ... Error: Cannot implicitly generate a default ctor when base class main.One is missing a default ctor. Windows 7, x86_64, DMD 2.066.The text was updated successfully, but these errors were encountered: