www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14108] New: template object.get cannot deduce function from

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 puremagic.com
          Reporter: timothee.cour2 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)

--
Feb 01 2015