We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5645577 commit e0b563dCopy full SHA for e0b563d
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2930,12 +2930,7 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
2930
}
2931
2932
2933
- /** Match a single case.
2934
- * @return Some(tp) if the match succeeds with type `tp`
2935
- * Some(NoType) if the match fails, and there is an overlap between pattern and scrutinee
2936
- * None if the match fails and we should consider the following cases
2937
- * because scrutinee and pattern do not overlap
2938
- */
+ /** Match a single case. */
2939
def matchCase(cas: Type): MatchResult = trace(i"match case $cas vs $scrut", matchTypes) {
2940
val cas1 = cas match {
2941
case cas: HKTypeLambda =>
0 commit comments