[Issue 18038] New: Error: with symbol is shadowing local symbol
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 6 11:48:09 UTC 2017
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 at puremagic.com
Reporter: zorael at 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
--
More information about the Digitalmars-d-bugs
mailing list