digitalmars.D.bugs - [Issue 23291] New: Members of arrays of shared classes cannot be
- d-bugmail puremagic.com (26/26) Aug 10 2022 https://issues.dlang.org/show_bug.cgi?id=23291
https://issues.dlang.org/show_bug.cgi?id=23291 Issue ID: 23291 Summary: Members of arrays of shared classes cannot be compared Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: rubytheroobster yandex.com The following code worked before 2.099.1. Now it doesn't: ```d void main() { shared class C { bool opEquals(const(shared(C)) rhs) const shared { return true;}} const(C) c = new C(); const(C)[] a = [c]; const(C)[] b = [c]; assert(a[0] == b[0]); } ``` --
Aug 10 2022