You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[spec/expression] Improve EqualExpression docs for classes (#4218)
Fixes#4217.
Add summary with correct info for class references.
Add subheading for structs.
Tweak `is` docs for comparing class reference to null.
Add `operatoroverloading.dd` link to struct equality best practices.
$(P For class / interface objects, identity is defined as the object references being identical.
726
-
Null class objects can be compared with `is`.
723
+
Class references can be efficiently compared against `null` using `is`.
727
724
Note that interface objects need not have the same reference of the class they were cast from.
728
725
To test whether an `interface` shares a class instance with another `interface` / `class` value, cast both operands to `Object` before comparing with `is`.
0 commit comments