[Issue 10378] Local imports hide local symbols

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 23 11:41:31 PDT 2014


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #7 from hsteoh at quickfur.ath.cx ---
Most blatant illustration of this bug:
------
import std.stdio;
void func(string text) {
        import std.conv;
        writeln(text);
}
void main() {
        func("Hello world");
}
------

Program output:
------
------

:-)

--


More information about the Digitalmars-d-bugs mailing list