[Issue 3250] New: Template mixin with import + base class causes forward reference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 13 09:28:44 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3250
Summary: Template mixin with import + base class causes forward
reference
Product: D
Version: 1.045
Platform: x86
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: doob at me.com
The following code causes forward reference:
template Mixin ()
{
import std.stdio; // it doesn't matter what import it is
int i;
}
class Bar : Foo
{
mixin Mixin;
}
class Foo
{
mixin Mixin;
}
Flip the class declarations to get the code to compile. The problem is harder
to work around with the classes in individual modules.
--
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