digitalmars.D.bugs - [Issue 21500] New: public import in mixin template in module a fails
- d-bugmail puremagic.com (32/32) Dec 22 2020 https://issues.dlang.org/show_bug.cgi?id=21500
https://issues.dlang.org/show_bug.cgi?id=21500 Issue ID: 21500 Summary: public import in mixin template in module a fails when module b import sa. Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: noobnoobsai gmail.com Is this supposed to work? ```bar.d mixin template baz() { public import std.stdio; // public import std.stdio : writeln; } } ``` ```foo.d import bar; mixin baz; // void main(){ // foo.d(8): Error: writeln is not defined, perhaps import std.stdio; is needed? writeln("foo"); // public import statement in mixin fails } ``` --
Dec 22 2020