We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd930b commit 15644d6Copy full SHA for 15644d6
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -2734,11 +2734,10 @@ object Types {
2734
2735
abstract class MethodOrPoly extends UncachedGroundType with LambdaType with MethodicType {
2736
final override def hashCode = System.identityHashCode(this)
2737
- final override def equals(other: Any) = this `eq` other.asInstanceOf[AnyRef]
2738
2739
final override def equals(that: Any) = equals(that, null)
2740
2741
- // No definition of `eql` --> fall back on equals, which calls iso
+ // No definition of `eql` --> fall back on equals, which is `eq`
2742
2743
final override def iso(that: Any, bs: BinderPairs) = that match {
2744
case that: MethodOrPoly =>
0 commit comments