Skip to content

Commit aebc8b4

Browse files
Update compiler/src/dotty/tools/dotc/core/Types.scala
Co-Authored-By: Guillaume Martres <smarter@ubuntu.com>
1 parent f468f17 commit aebc8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ object Types {
918918
case tp @ MethodType(Nil) => tp.resultType
919919
case _ => tp
920920
}
921-
this.isInstanceOf[ClassInfo] && !checkClassInfo
921+
!checkClassInfo && this.isInstanceOf[ClassInfo]
922922
|| (this.widenExpr frozen_<:< that.widenExpr)
923923
|| matchLoosely && {
924924
val this1 = widenNullary(this)

0 commit comments

Comments
 (0)