Skip to content

Commit cd77720

Browse files
committed
Fix sigsOK check if lower type does not have a symbol
Needed to compile pos/i11481.scala
1 parent d38a51a commit cd77720

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: compiler/src/dotty/tools/dotc/core/TypeComparer.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
17541754
case _ => isSubType(info1, info2)
17551755
case _ => isSubType(info1, info2)
17561756

1757-
isSubInfo(m.info.widenExpr, tp2.refinedInfo.widenExpr, m.symbol.info)
1757+
val info1 = m.info.widenExpr
1758+
isSubInfo(info1, tp2.refinedInfo.widenExpr, m.symbol.info.orElse(info1))
17581759
|| matchAbstractTypeMember(m.info)
17591760
end qualifies
17601761

0 commit comments

Comments
 (0)