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: nob...@puremagic.com Reporter: deadal...@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. --