http://d.puremagic.com/issues/show_bug.cgi?id=6618
Summary: TypeInfo_Struct.equals should prefer xopEquals than pointer equality Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: druntime AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-09-07 03:10:17 PDT --- 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)); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------