Skip to content

Commit 1d475fb

Browse files
committed
fix type signature to pass null check
1 parent 0d7bdcb commit 1d475fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ final class ProperGadtConstraint private(
157157
*/
158158
def subsumes(left: GadtConstraint, right: GadtConstraint, pre: GadtConstraint)(using Context): Boolean =
159159
def checkSubsumes(left: ProperGadtConstraint, right: ProperGadtConstraint, pre: ProperGadtConstraint): Boolean = {
160-
def rightToLeft: TypeParamRef => TypeParamRef = {
160+
def rightToLeft: TypeParamRef => TypeParamRef | Null = {
161161
val preParams = pre.constraint.domainParams.toSet
162162
val mapping = {
163163
var res: SimpleIdentityMap[TypeParamRef, TypeParamRef] = SimpleIdentityMap.empty

0 commit comments

Comments
 (0)