Pathological import symbol shadowing
Vladimir Panteleev
thecybershadow.lists at gmail.com
Sat Nov 21 02:57:24 UTC 2020
On Friday, 13 November 2020 at 22:57:03 UTC, H. S. Teoh wrote:
> Just ran into this today:
>
> void main() {
> int[string] aa;
> int x;
>
> x = aa.get("abc", 123); // OK
>
> import std;
> x = aa.get("abc", 123); // Error: template std.net.curl.get
> cannot deduce function from argument types ...
>
> import std, object;
> x = aa.get("abc", 123); // OK
> }
Can we fix this particular case by adding "public import object;"
to std/package.d ?
More information about the Digitalmars-d
mailing list