July 16, 2013 [Issue 10652] New: Mixins doesn't evaluate on cross imports | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10652 Summary: Mixins doesn't evaluate on cross imports Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: temtaime@gmail.com --- Comment #0 from Temtaime <temtaime@gmail.com> 2013-07-16 03:36:46 PDT --- A.d: import B; T var; B.d: import A; mixin(`alias T = int;`); Expected result: T is int variable, code compiles OK Compiler gives on compiling B.d: Error: undefined identifier T If i change mixin(`alias T = int;`); to simple code alias T = int; Then it's compiles. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation