[Issue 6618] New: TypeInfo_Struct.equals should prefer xopEquals than pointer equality
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 7 03:10:29 PDT 2011
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: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list