Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 7034b2c

Browse files
committed
Improved makeStatus to get exhaustiveness checking from scalac
1 parent 19bfc74 commit 7034b2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/scala/scala/tools/partest/nest/SBTRunner.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class SBTRunner(partestFingerprint: Fingerprint, eventHandler: EventHandler, log
5151
}
5252

5353
def makeStatus(t: TestState): (Status, OptionalThrowable) = t match {
54-
case _: Uninitialized => (Status.Pending, new OptionalThrowable)
55-
case _: Pass => (Status.Success, new OptionalThrowable)
56-
case _: Updated => (Status.Success, new OptionalThrowable)
57-
case _: Skip => (Status.Skipped, new OptionalThrowable)
58-
case _: Fail => (Status.Failure, new OptionalThrowable)
59-
case Crash(_,e,_) => (Status.Error, new OptionalThrowable(e))
54+
case Uninitialized(_) => (Status.Pending, new OptionalThrowable)
55+
case Pass(_) => (Status.Success, new OptionalThrowable)
56+
case Updated(_) => (Status.Success, new OptionalThrowable)
57+
case Skip(_, _) => (Status.Skipped, new OptionalThrowable)
58+
case Fail(_, _, _) => (Status.Failure, new OptionalThrowable)
59+
case Crash(_, e, _) => (Status.Error, new OptionalThrowable(e))
6060
}
6161
}

0 commit comments

Comments
 (0)