File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ trait Hashable {
33
33
private def finishHash (hashCode : Int , arity : Int ): Int =
34
34
avoidNotCached(hashing.finalizeHash(hashCode, arity))
35
35
36
- protected final def identityHash = avoidNotCached(System .identityHashCode(this ))
36
+ final def identityHash = avoidNotCached(System .identityHashCode(this ))
37
37
38
38
private def finishHash (seed : Int , arity : Int , tp : Type ): Int = {
39
39
val elemHash = tp.hash
Original file line number Diff line number Diff line change @@ -1757,7 +1757,7 @@ object Types {
1757
1757
}
1758
1758
}
1759
1759
1760
- // ----- Bound types: MethodParam, PolyParam, RefiendThis --------------------------
1760
+ // ----- Bound types: MethodParam, PolyParam, RefinedThis --------------------------
1761
1761
1762
1762
abstract class BoundType extends CachedProxyType with ValueType {
1763
1763
type BT <: BindingType
@@ -1821,7 +1821,7 @@ object Types {
1821
1821
1822
1822
// need to customize hashCode and equals to prevent infinite recursion for
1823
1823
// refinements that refer to the refinement type via this
1824
- override def computeHash = identityHash
1824
+ override def computeHash = addDelta(binder. identityHash, 41 )
1825
1825
override def equals (that : Any ) = that match {
1826
1826
case that : RefinedThis => this .binder eq that.binder
1827
1827
case _ => false
You can’t perform that action at this time.
0 commit comments