Add unittest for 13935.

This commit is contained in:
H. S. Teoh 2015-01-08 17:46:16 -08:00
parent 51e390d0bb
commit d79f17444c

View file

@ -14665,6 +14665,13 @@ pure @safe nothrow @nogc unittest
assert(D.front == front1);
}
// Issue 13935
unittest
{
auto seq = [1, 2].map!(x => x);
foreach (pair; cartesianProduct(seq, seq)) {}
}
/**
Find $(D value) _among $(D values), returning the 1-based index
of the first matching value in $(D values), or $(D 0) if $(D value)