Summary: attributes injected via pure template mixin but not
                    class mixin
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from pelo <> 2011-10-06 04:01:43 PDT ---
import std.stdio;

    class C(T) {
        T val;

    class D {
        mixin C!bool;

    int main() {
        auto d = new D;
        return 0;

This fails to compile (no val in D), yet if defining C as:

    template C(T) {
        T val;

It works.

This is rather silly as it forces me to write wrapper classes that forward to a

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

Reply via email to