Summary: Template mixin with import + base class causes forward
           Product: D
           Version: 1.045
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

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:
------- You are receiving this mail because: -------

Reply via email to