We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aba5f7 commit e9c4539Copy full SHA for e9c4539
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2926,12 +2926,7 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
2926
}
2927
2928
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
- */
+ /** Match a single case. */
2935
def matchCase(cas: Type): MatchResult = trace(i"match case $cas vs $scrut", matchTypes) {
2936
val cas1 = cas match {
2937
case cas: HKTypeLambda =>
0 commit comments