diff --git a/std/parallelism.d b/std/parallelism.d index 32e71798a..583f6d43e 100644 --- a/std/parallelism.d +++ b/std/parallelism.d @@ -4561,3 +4561,9 @@ unittest auto result = taskPool.amap!__genPair_12733(data); } + +unittest +{ + // this test was in std.range, but caused cycles. + assert(__traits(compiles, { foreach (i; iota(0, 100UL).parallel) {} })); +} diff --git a/std/range/package.d b/std/range/package.d index c6bab3bba..4ebef874f 100644 --- a/std/range/package.d +++ b/std/range/package.d @@ -5354,9 +5354,6 @@ unittest unittest { - import std.parallelism : parallel; - - assert(__traits(compiles, { foreach (i; iota(0, 100UL).parallel) {} })); assert(iota(1UL, 0UL).length == 0); assert(iota(1UL, 0UL, 1).length == 0); assert(iota(0, 1, 1).length == 1);