[Issue 17630] selective imports find symbols in private imports of other modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 22 14:09:40 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17630

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #7 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Timothee Cour from comment #6)
> just to make sure this is the same bug right?
> 
> ```
> // fun.d:
> module fun;
> import std.stdio;
> // main.d:
> import fun:writeln; // should not compile
> void main(){ writeln("ok"); }
> ```
> 
> `rdmd main.d` works but should not compile

Indeed it is the same bug. I will submit a PR shortly

--


More information about the Digitalmars-d-bugs mailing list