digitalmars.D.bugs - [Issue 13127] New: Cannot deduce function with int[][] argument and
- via Digitalmars-d-bugs (27/27) Jul 13 2014 https://issues.dlang.org/show_bug.cgi?id=13127
https://issues.dlang.org/show_bug.cgi?id=13127 Issue ID: 13127 Summary: Cannot deduce function with int[][] argument and "in" parameter Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: doob me.com This code works in DMD 2.065.0 but not in 2.066.0-b3: void foo (T)(in T[] src, T[] dest); void main () { int[][] a; foo(a, a); } The error message is: main.d(14): Error: template main.foo cannot deduce function from argument types !()(int[][], int[][]), candidates are: main.d(9): main.foo(T)(in T[] src, T[] dest) If I remove "in" or if "a" is of type "int[]" it compiles. --
Jul 13 2014