Summary: Cannot forward reference a template mixin's members in
                    a compile-time context
           Product: D
           Version: 1.051
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: blocker
          Priority: P2
         Component: DMD
            Blocks: 340

--- Comment #0 from Matti Niemenmaa <> 
2009-11-14 12:29:13 PST ---
template T(bool b) { static assert (b); }

template Mix() { void f() {} }

class C {
    alias T!(is(typeof(M.f))) U;
    mixin Mix!() M;

foo.d(1): Error: static assert  (b) is false

Moving the alias below the mixin makes the code compile.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to