Skip to content

Commit 113ee1c

Browse files
committed
Try to do without leftRoot
1 parent 100bdeb commit 113ee1c

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
@@ -1066,7 +1066,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] {
10661066
*/
10671067
def compareCaptured(arg1: TypeBounds, arg2: Type) = tparam match {
10681068
case tparam: Symbol
1069-
if leftRoot.isStable || ctx.isAfterTyper || ctx.mode.is(Mode.TypevarsMissContext) =>
1069+
if /*leftRoot.isStable ||*/ ctx.isAfterTyper || ctx.mode.is(Mode.TypevarsMissContext) =>
10701070
val captured = TypeRef(leftRoot, tparam)
10711071
assert(captured.exists, i"$leftRoot has no member $tparam in isSubArgs($args1, $args2, $tp1, $tparams2)")
10721072
isSubArg(captured, arg2)

0 commit comments

Comments
 (0)