Why doesn't this work in D2?
doob at me.com
Sun Jun 27 10:18:26 PDT 2010
Why doesn't the following code work in D2 (it works in D1)?
void foo (T) (in T a, T b)
void main ()
The error I get is:
main.d(10): Error: template main.foo(T) does not match any function
main.d(10): Error: template main.foo(T) cannot deduce template function
from argument types !()(string,char)
It seems to be some problem with the "b" argument, if I change that to
"char" it works.
More information about the Digitalmars-d-learn