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: nob...@puremagic.com ReportedBy: d...@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: -------