Following code should pass the assertion. void main() { struct S { const bool opEquals(ref const S rhs) { return false; } } S s; assert(!typeid(S).equals(&s, &s)); }
https://github.com/D-Programming-Language/druntime/pull/68
https://github.com/9rnsr/druntime/commit/76f732c97cd35686da670fde6af63ac1b59aabb9