D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19832 - mixin with AliasSeq fails
Summary: mixin with AliasSeq fails
Status: RESOLVED DUPLICATE of issue 19775
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-26 23:58 UTC by Bolpat
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Bolpat 2019-04-26 23:58:44 UTC
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 basile-z 2019-04-27 00:14:52 UTC
This was fixed recently : https://github.com/dlang/dmd/pull/9521

*** This issue has been marked as a duplicate of issue 19775 ***