November 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13760

          Issue ID: 13760
           Summary: Cannot deduce function for object.get
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody@puremagic.com
          Reporter: sinkuupump@gmail.com

Error occurs when trying to call object.get:

```
static class C {}
C[int] aa;
auto c = aa.get(0, new C); //  Error: template object.get cannot deduce
function from argument types !()(C[int], int, C)
```

Test case:
```
class C { }

void main()
{
    C[int] aa;
    func(new C);
}

void func(K, V)(inout(V[K]) aa, inout(V) val)
{
}
```

Output:
```
$ dmd test.d
test.d(6): Error: template test.func cannot deduce function from argument types
!()(C[int], C), candidates are:
test.d(9):        test.func(K, V)(inout(V[K]) aa, inout(V) val)
```

This is a regression introduced by DMD pull 4145. https://github.com/D-Programming-Language/dmd/pull/4145

--