4 fail_compilation/ice12501.d(31): Error: function `ice12501.foo(int value)` is not callable using argument types `(int, int)`
5 fail_compilation/ice12501.d(31): expected 1 argument(s), not 2
6 fail_compilation/ice12501.d(31): Error: function `ice12501.foo(int value)` is not callable using argument types `(int, int)`
7 fail_compilation/ice12501.d(31): expected 1 argument(s), not 2
8 fail_compilation/ice12501.d(45): Error: template instance `ice12501.reduce!(foo, foo).reduce!(Tuple!(int, int), int[])` error instantiating
18 Tuple
!A
tuple(A
...)(A args
) { return typeof(return)(args
); }
20 template reduce(fun
...)
22 auto reduce(Args
...)(Args args
)
26 Args
[0] result
= seed
;
27 for (; r
.length
!= 0; r
= r
[1..$])
29 foreach (i
, Unused
; Args
[0].Types
)
31 result
[i
] = fun
[i
](result
[i
], r
[0]);
45 reduce
!(foo
, foo
)(tuple(0, 0), [ 1 ]);