https://issues.dlang.org/show_bug.cgi?id=13811
Issue ID: 13811
Summary: Cannot deduce function from argument types with
varargs
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
This code worked in 2.066.0 but fails to compile in 2.066.1
void remove (T) (T[] arr, T[] elements ...) { }
void remove (Range, Index ...) (Range range, Index indexes) { }
void main ()
{
string[] a;
a.remove(3);
}
The error message is:
main.d(12): Error: template main.remove cannot deduce function from argument
types !()(string[], int), candidates are:
main.d(6): main.remove(T)(T[] arr, T[] elements...)
main.d(7): main.remove(Range, Index...)(Range range, Index indexes)
--