[Issue 12242] conflict error with public imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 23 01:33:54 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12242



--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-23 10:33:53 EET ---
This is a compiler bug because this program doesn't compile (as is expected):

/////// test.d //////
import std.algorithm;

void main()
{
    " af ".strip;
}
/////////////////////

And this program compiles (as it should):

/////// test.d //////
import std.algorithm;
import std.string;

void main()
{
    " af ".strip;
}
/////////////////////

Note that the above program differs from OP's only in how imports are
"funneled".

Therefore, there should be no conflict, because out of std.algorithm.strip and
std.string.strip, only one will work with those parameters.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list