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 2eef00a commit 292103aCopy full SHA for 292103a
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2118,7 +2118,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2118
formals2.isEmpty
2119
}
2120
// Check if methods are erased, then the erased parameters match
2121
- val erasedValid = if tp1.isErasedMethod && tp1.isErasedMethod then
+ val erasedValid = if tp1.isErasedMethod && tp2.isErasedMethod then
2122
val comp1 = tp1.companion.asInstanceOf[ErasedMethodCompanion]
2123
val comp2 = tp2.companion.asInstanceOf[ErasedMethodCompanion]
2124
comp1.isErased == comp2.isErased
0 commit comments