digitalmars.D.bugs - [Issue 16316] New: [REG 2.071] (Import deprecation) fully qualified
- via Digitalmars-d-bugs (35/35) Jul 24 2016 https://issues.dlang.org/show_bug.cgi?id=16316
https://issues.dlang.org/show_bug.cgi?id=16316 Issue ID: 16316 Summary: [REG 2.071] (Import deprecation) fully qualified name of imports in mixin template not accessible Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: code dawg.eu cat > bug.d << CODE template imp() { static import core.stdc.stdio; // also w/o static } mixin imp!(); void test() { core.stdc.stdio.puts(""); } CODE dmd -c bug ---- bug.d(10): Deprecation: package core.stdc is not accessible here bug.d(10): Deprecation: module core.stdc.stdio is not accessible here, perhaps add 'static import core.stdc.stdio;' ---- While imports from mixin templates are no longer searched for unqualified symbols, the fully qualified name of the imported modules should still be available. --
Jul 24 2016