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: nob...@puremagic.com
          Reporter: rubytheroobs...@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]);
}
```

--

Reply via email to