makeIndex not working
Johann MacDonagh
johann.macdonagh..no at spam..gmail.com
Sat Jul 2 18:00:39 PDT 2011
On 7/2/2011 9:00 PM, bearophile wrote:
> Johann MacDonagh:
>
>> I'm confused, what am I doing wrong here?
>
> I think that Phobos needs way more&better unittests.
>
> I think the error you receive reduces to this:
>
> import std.range: isForwardRange;
>
> void foo(R)(R r) if (isForwardRange!R) {}
>
> void main() {
> immutable arr = [1, 2];
> foo(arr);
> }
>
> Bye,
> bearophile
Strangely enough there is a unit test for this...
https://github.com/D-Programming-Language/phobos/blob/phobos-2.053/std/algorithm.d#L6742
Does this code fail to compile for you too? I want to make sure I didn't
mess up my config here.
More information about the Digitalmars-d-learn
mailing list