digitalmars.D.bugs - [Issue 18038] New: Error: with symbol is shadowing local symbol
- d-bugmail puremagic.com (32/32) Dec 06 2017 https://issues.dlang.org/show_bug.cgi?id=18038
https://issues.dlang.org/show_bug.cgi?id=18038 Issue ID: 18038 Summary: Error: with symbol is shadowing local symbol Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: zorael gmail.com Arch/Manjaro 64-bit, dmd 2.077.0 struct Thing { import std.string : indexOf; } void main() { import std.stdio : writeln; import std.string : indexOf; Thing thing; with (thing) { writeln(typeof(indexOf).stringof); } } source/app.d(14,24): Error: with symbol app.Thing.indexOf is shadowing local symbol indexOf https://run.dlang.io/is/voz7wb --
Dec 06 2017