[Issue 22482] New: imported package shadow local variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 02:54:51 UTC 2021
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 at puremagic.com
Reporter: deadalnix at 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.
--
More information about the Digitalmars-d-bugs
mailing list