Skip to content

Commit 45ea630

Browse files
committed
Fix comparison
1 parent 2babe93 commit 45ea630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
488488
case _ => tp2 isRef ObjectClass
489489
}
490490
compareJavaArray
491-
case tp1: ExprType if ctx.phase.id >= ctx.gettersPhase.id =>
491+
case tp1: ExprType if ctx.phase.id > ctx.gettersPhase.id =>
492492
// getters might have converted T to => T, need to compensate.
493493
isSubType(tp1.widenExpr, tp2)
494494
case _ =>

0 commit comments

Comments
 (0)