← Back to index
|
Original Bugzilla link
Bug 22347 – a preliminary pass before dsymbolSemantic() should be used to compile all the MixinDeclarations of a module
Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-02T10:06:47Z
Last change time
2021-10-02T10:43:58Z
Assigned to
No Owner
Creator
Basile-z
Comments
Comment #0
by b2.temp — 2021-10-02T10:06:47Z
At first glance that would allow code like ```d struct Ar { Br b; ubyte a; } mixin(q{struct Br { ubyte b; }}); ``` to compile successfully.
Comment #1
by b2.temp — 2021-10-02T10:43:58Z
appart that trivial case that would not work because of .string and __traits that require stuff to be analyzed.