[Issue 23972] class identity check is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 17 12:54:26 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23972

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
Thank you for taking the time of writing this bug report, however, as explained
in this comment [1], the bug report is invalid. I1 and I2 are different types,
therefore the is expression is correct in returning false. The fact that the
pointer points to the same memory address is not relevant in this case since
the compiler does not do any dataflow analysis to see where the interface was
assigned.

[1] https://github.com/dlang/dmd/pull/15696#pullrequestreview-1682054176

--


More information about the Digitalmars-d-bugs mailing list