We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9388bc commit 6db4befCopy full SHA for 6db4bef
compiler/src/dotty/tools/dotc/core/TypeErasure.scala
@@ -79,6 +79,13 @@ object TypeErasure {
79
abstract case class ErasedValueType(tycon: TypeRef, erasedUnderlying: Type)
80
extends CachedGroundType with ValueType {
81
override def computeHash(bs: Hashable.Binders) = doHash(bs, tycon, erasedUnderlying)
82
+
83
+ override def iso(that: Any, bs: Hashable.BinderPairs) = that match {
84
+ case that: ErasedValueType =>
85
+ tycon.equals(that.tycon, bs) && erasedUnderlying.equals(that.erasedUnderlying)
86
+ case _ =>
87
+ false
88
+ }
89
}
90
91
final class CachedErasedValueType(tycon: TypeRef, erasedUnderlying: Type)
0 commit comments