On Monday, 24 June 2013 at 16:03:17 UTC, Ali Çehreli wrote:
On 06/24/2013 07:05 AM, Craig Dillabaugh wrote:

> The following is a minimal example:

Further reduced:

import std.range;

void main()
{
    lockstep(iota(0, 10), [ 1 ]);
}

Strangely, the error message points at two comment lines in my installation of 2.063:

/usr/include/dmd/phobos/std/range.d(4716): Error: delegate dg (ref int, ref int) is not callable using argument types (int, int) /usr/include/dmd/phobos/std/range.d(4717): Error: delegate dg (ulong, ref int, ref int) is not callable using argument types (ulong, int, int)

Lines 4716 and 4717 are the two lines of the following comment:

// For generic programming, make sure Lockstep!(Range) is well defined for a
// single range.
template Lockstep(Range)
{
    alias Range Lockstep;
}

Ali

Well, I guess my example wasn't so minimal after all :o)

So is this worthy of a bug report then?

Reply via email to