Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherited classes doesn't see a parent's default ctor added by mixin template (DMD 2.066) #18871

Open
dlangBugzillaToGithub opened this issue Aug 22, 2014 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant