[Issue 14108] New: template object.get cannot deduce function from argument types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 17:29:47 PST 2015


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

          Issue ID: 14108
           Summary: template object.get cannot deduce function from
                    argument types
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

Not sure if it's related to 1370 but it still appears in git head
(v2.067-devel-e542e14)

----
enum b=[
  "a":1,
];
void main(){
  char[]a="a".dup;
  b.get(a,1);
  b.get(a.idup,1);//error in git head
}
----
dmd -run main.d
Error: template object.get cannot deduce function from argument types
!()(int[string], char[], int), candidates are:...

it worked in dmd 2.066 (v2.066-devel-4d3a95a)

--


More information about the Digitalmars-d-bugs mailing list