Skip to content

Commit 292103a

Browse files
committed
Fix typo in TypeComparer
1 parent 2eef00a commit 292103a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
21182118
formals2.isEmpty
21192119
}
21202120
// Check if methods are erased, then the erased parameters match
2121-
val erasedValid = if tp1.isErasedMethod && tp1.isErasedMethod then
2121+
val erasedValid = if tp1.isErasedMethod && tp2.isErasedMethod then
21222122
val comp1 = tp1.companion.asInstanceOf[ErasedMethodCompanion]
21232123
val comp2 = tp2.companion.asInstanceOf[ErasedMethodCompanion]
21242124
comp1.isErased == comp2.isErased

0 commit comments

Comments
 (0)