Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 21898 - Qualifier ignored in alias definition if parenthese…
…s are not present
- Loading branch information
1 parent
da751c2
commit f991372
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// https://issues.dlang.org/show_bug.cgi?id=21898 | ||
|
||
alias Works(T) = immutable(T); | ||
alias Fails(T) = immutable T; | ||
|
||
static assert(is(Works!int == immutable int)); | ||
static assert(is(Fails!int == immutable int)); |