Skip to content

Commit 7377ee3

Browse files
committed
update comment
1 parent fa919f5 commit 7377ee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
24042404
* 1. Single inheritance of classes
24052405
* 2. Final classes cannot be extended
24062406
* 3. ConstantTypes with distinct values are non intersecting
2407-
* 4. There is no value of type Nothing
2407+
* 4. TermRefs with distinct values are non intersecting
2408+
* 5. There is no value of type Nothing
24082409
*
24092410
* Note on soundness: the correctness of match types relies on on the
24102411
* property that in all possible contexts, the same match type expression

0 commit comments

Comments
 (0)