forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Update subtyping rules to reflect the impl
See https://github.com/lampepfl/dotty/blob/9982f0dced80d96cf5ca01f89ad68d969b9516ba/compiler/src/dotty/tools/dotc/core/TypeComparer.scala#L814-L816 Where we check for equality of scrutinees And https://github.com/lampepfl/dotty/blob/9982f0dced80d96cf5ca01f89ad68d969b9516ba/library/src/scala/internal/MatchCase.scala#L5 Where the pattern of a match case is invariant, meaning we also use equality for those.
- Loading branch information
1 parent
fae6e63
commit 7170872
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters