File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2564,9 +2564,10 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
25642564 // of classes.
25652565 true
25662566 else if (isDecomposable(cls1))
2567- // At this point, !cls1.derivesFrom(cls2): we know that `cls1`
2568- // is disjoint from `tp2`. Therefore, we can safely decompose
2569- // `cls1` using `.children`, even if `cls1` is non abstract.
2567+ // At this point, !cls1.derivesFrom(cls2): we know that direct
2568+ // instantiations of `cls1` (terms of the form `new cls1`) are not
2569+ // of type `tp2`. Therefore, we can safely decompose `cls1` using
2570+ // `.children`, even if `cls1` is non abstract.
25702571 decompose(cls1, tp1).forall(x => provablyDisjoint(x, tp2))
25712572 else if (isDecomposable(cls2))
25722573 decompose(cls2, tp2).forall(x => provablyDisjoint(x, tp1))
You can’t perform that action at this time.
0 commit comments