Skip to content

Commit 0cc29a0

Browse files
Fix docs typo
Co-authored-by: Dale Wijnand <[email protected]>
1 parent ac6a8f4 commit 0cc29a0

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
@@ -2564,7 +2564,7 @@ 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 `new cls2`
2567+
// At this point, !cls1.derivesFrom(cls2): we know that `cls1`
25682568
// is disjoint from `tp2`. Therefore, we can safely decompose
25692569
// `cls1` using `.children`, even if `cls1` is non abstract.
25702570
decompose(cls1, tp1).forall(x => provablyDisjoint(x, tp2))

0 commit comments

Comments
 (0)