Cross module conflict bug with private and public members?
Gary Willoughby via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 22 06:47:30 PDT 2015
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?
More information about the Digitalmars-d
mailing list