Bug 21898 – Qualifier ignored in alias definition if parentheses are not present
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-06T18:19:58Z
Last change time
2021-05-12T10:39:31Z
Keywords
pull
Assigned to
No Owner
Creator
Andrei Alexandrescu
Comments
Comment #0 by andrei — 2021-05-06T18:19:58Z
Consider:
alias Works(T) = immutable(T);
alias Fails(T) = immutable T;
static assert(is(Works!int == immutable int));
static assert(is(Fails!int == immutable int));
The first static assert passes, the second doesn't. Both should.
Comment #1 by moonlightsentinel — 2021-05-06T19:35:01Z
@BorisCarvajal created dlang/dmd pull request #12501 "Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present" fixing this issue:
- Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present
https://github.com/dlang/dmd/pull/12501
Comment #3 by dlang-bot — 2021-05-07T00:20:12Z
dlang/dmd pull request #12501 "Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present" was merged into stable:
- 5d181a7d6d4c44452674c1b05a39b2342fd36302 by Boris Carvajal:
Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present
https://github.com/dlang/dmd/pull/12501
Comment #4 by dlang-bot — 2021-05-08T20:45:22Z
dlang/dmd pull request #12504 "[dmd-cxx] Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present" was merged into dmd-cxx:
- 7cc7c89c466d6755d9a46808929e7804a6a9c15f by Iain Buclaw:
[dmd-cxx] Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present
https://github.com/dlang/dmd/pull/12504
Comment #5 by dlang-bot — 2021-05-12T10:39:31Z
dlang/dmd pull request #12516 "merge stable" was merged into master:
- f991372ea8468c734e634093e8c26087f9a899bd by Boris Carvajal:
Fix Issue 21898 - Qualifier ignored in alias definition if parentheses are not present
https://github.com/dlang/dmd/pull/12516