import std.stdio;
import std.range;
import std.concurrency;
void main(string[] args)
{
auto generator = new Generator!(int)({
foreach (value; 1..10)
{
yield(value);
}
});
foreach (value; generator)
{
writeln(value);
}
}
Compiled with `rdmd test.d`
test.d(41): Error: std.concurrency.Generator(T) at
/usr/include/dmd/phobos/std/concurrency.d(1569) conflicts with
std.range.Generator(Fun...) at /usr/include/dmd/phobos/std/rang
e/package.d(2806)
`std.concurrency.Generator` is public and `std.range.Generator`
is private so surely these shouldn't conflict?