digitalmars.D.bugs - [Issue 22482] New: imported package shadow local variable
- d-bugmail puremagic.com (24/24) Nov 04 2021 https://issues.dlang.org/show_bug.cgi?id=22482
https://issues.dlang.org/show_bug.cgi?id=22482 Issue ID: 22482 Summary: imported package shadow local variable Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: enhancement Priority: P3 Component: dmd Assignee: nobody puremagic.com Reporter: deadalnix gmail.com void foo(C)(ref C config) { // Do stuff import config.somemodule; config.extends(bar()); } Gives: Error: undefined identifier `extends` in package `config` This does not sound reasonable to me. The package should not take precedence over local variable. --
Nov 04 2021