Bug 10652 – Mixins doesn't evaluate on cross imports

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-16T03:36:46Z
Last change time
2023-03-29T12:29:13Z
Assigned to
No Owner
Creator
Temtaime

Comments

Comment #0 by temtaime — 2013-07-16T03:36:46Z
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.
Comment #1 by razvan.nitu1305 — 2023-03-29T12:29:13Z
I cannot reproduce this. Code compiles succesfully.