[Issue 10652] New: Mixins doesn't evaluate on cross imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 16 03:36:48 PDT 2013
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 at puremagic.com
ReportedBy: temtaime at gmail.com
--- Comment #0 from Temtaime <temtaime at 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: -------
More information about the Digitalmars-d-bugs
mailing list