[Issue 14184] New: Cannot resolve type for lambda stringof in constructor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 15 13:06:31 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14184

          Issue ID: 14184
           Summary: Cannot resolve type for lambda stringof in constructor
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: peter.alexander.au at gmail.com

----------------------------
alias id(alias a) = a;

struct A(alias f) {
  alias g = id!(a => f(a));
  this(int) {
    g.stringof;
  }
}

A!(a => a) x;
----------------------------

bug.d(6): Error: cannot resolve type for this.__lambda3
bug.d(10): Error: template instance bug.A!((a) => a) error instantiating

--


More information about the Digitalmars-d-bugs mailing list