[Issue 1170] New: Cannot forward reference a type defined in a MixinStatement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 20 09:16:35 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1170

           Summary: Cannot forward reference a type defined in a
                    MixinStatement
           Product: D
           Version: 1.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com
OtherBugsDependingO 340
             nThis:


(Set version to 1.012, as 1.013 isn't in the list yet.)

type x;
mixin("alias int type;");

All of alias, typedef, enum, struct, class, and a template containing any of
the above don't work.

Flip the order of the two lines or replace the mixin with its contents and the
code compiles.


-- 



More information about the Digitalmars-d-bugs mailing list