www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14184] New: Cannot resolve type for lambda stringof in

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 puremagic.com
          Reporter: peter.alexander.au 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

--
Feb 15 2015