Skip to content

Commit e9c4539

Browse files
committed
Fix comments
1 parent 6aba5f7 commit e9c4539

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,12 +2926,7 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
29262926
}
29272927
}
29282928

2929-
/** Match a single case.
2930-
* @return Some(tp) if the match succeeds with type `tp`
2931-
* Some(NoType) if the match fails, and there is an overlap between pattern and scrutinee
2932-
* None if the match fails and we should consider the following cases
2933-
* because scrutinee and pattern do not overlap
2934-
*/
2929+
/** Match a single case. */
29352930
def matchCase(cas: Type): MatchResult = trace(i"match case $cas vs $scrut", matchTypes) {
29362931
val cas1 = cas match {
29372932
case cas: HKTypeLambda =>

0 commit comments

Comments
 (0)