Bug 19832 – mixin with AliasSeq fails

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-04-26T23:58:44Z
Last change time
2020-03-21T03:56:31Z
Assigned to
No Owner
Creator
Bolpat

Comments

Comment #0 by qs.il.paperinik — 2019-04-26T23:58:44Z
mixin has been expanded to accept any number of arguments that are being concatenated. This should also work with an AliasSeq. alias seq = AliasSeq!("a +", 1); a = mixin(seq); should behave the same way as a = mixin("a +", 1); The generated error message "Error: undefined identifier `tuple`" is rather confusing.
Comment #1 by b2.temp — 2019-04-27T00:14:52Z
This was fixed recently : https://github.com/dlang/dmd/pull/9521 *** This issue has been marked as a duplicate of issue 19775 ***