File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -846,6 +846,9 @@ class SpaceEngine(using Context) extends SpaceLogic {
846
846
847
847
if (! exhaustivityCheckable(sel)) return
848
848
849
+ debug.println(" checking " + _match.show)
850
+ debug.println(" selTyp = " + selTyp.show)
851
+
849
852
val patternSpace = Or (cases.foldLeft(List .empty[Space ]) { (acc, x) =>
850
853
val space = if (x.guard.isEmpty) project(x.pat) else Empty
851
854
debug.println(s " ${x.pat.show} ====> ${show(space)}" )
Original file line number Diff line number Diff line change
1
+ 5: Pattern Match Exhaustivity: _: Type[evidence$1$_$1]
2
+ 12: Match case Unreachable
Original file line number Diff line number Diff line change
1
+ 2: Pattern Match Exhaustivity: _: Foo[_]
Original file line number Diff line number Diff line change
1
+ sealed abstract class Foo [T ]
2
+ object Foo extends Foo [Nothing ]
You can’t perform that action at this time.
0 commit comments