[Issue 20185] New: IsExpression with identifier does not handle combined qualifiers correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 31 18:57:22 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20185
Issue ID: 20185
Summary: IsExpression with identifier does not handle combined
qualifiers correctly
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: htvennik at gmail.com
----
static assert(is(const int == const)); // OK
static assert(is(shared const int == const)); // OK
static assert(is(const int U == const U)); // OK
static assert(is(shared const int U == const U)); // FAILS
----
The IsExpression in the latter should return `true`, and `U` should be defined
as an alias to `shared int`.
This bug affects core.internal.traits.Unconst
--
More information about the Digitalmars-d-bugs
mailing list