Bug 13692 – alias this and is-expression anomaly

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-06T10:11:03Z
Last change time
2018-02-20T11:22:53Z
Assigned to
No Owner
Creator
Peter Alexander

Comments

Comment #0 by peter.alexander.au — 2014-11-06T10:11:03Z
----------------------------------------------- struct T { int[] x; alias x this; } pragma(msg, is(T == int[])); // false pragma(msg, is(T == U[], U)); // true (!) ----------------------------------------------- I would expect both to be false, as the IsExpression with == is supposed to test for type equivalence, not implicit conversions.
Comment #1 by sascha.orlov — 2018-02-20T11:22:53Z
*** This issue has been marked as a duplicate of issue 11499 ***