Skip to content

Commit 6db4bef

Browse files
committed
Fix iso
1 parent e9388bc commit 6db4bef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ object TypeErasure {
7979
abstract case class ErasedValueType(tycon: TypeRef, erasedUnderlying: Type)
8080
extends CachedGroundType with ValueType {
8181
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+
}
8289
}
8390

8491
final class CachedErasedValueType(tycon: TypeRef, erasedUnderlying: Type)

0 commit comments

Comments
 (0)