Skip to content

Commit b454936

Browse files
committed
Fix stupid error in isSubArgs
1 parent bc81563 commit b454936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
775775
(v < 0 || isSubType(tp1, tp2))
776776
}
777777
isSub(args1.head, args2.head)
778-
} && isSubArgs(args1.tail, args2.tail, tparams)
778+
} && isSubArgs(args1.tail, args2.tail, tparams.tail)
779779

780780
/** Test whether `tp1` has a base type of the form `B[T1, ..., Tn]` where
781781
* - `B` derives from one of the class symbols of `tp2`,

0 commit comments

Comments
 (0)