shared class C
{
void foo(T)(T a) {}
}
void main()
{
auto c = new C;
c.foo(10);
}
---
Compiles in DMD 2.050. But 2.051 gives:
test0.d(9): Error: template test0.C.foo(T) does not match any function template
declaration
test0.d(9): Error: template test0.C.foo(T) cannot deduce template function from
argument types !()(int)
Doesn't happen if foo is a normal (non-template) function.