diff options
Diffstat (limited to 'test/files/run/exceptions.scala')
-rw-r--r-- | test/files/run/exceptions.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/exceptions.scala b/test/files/run/exceptions.scala index fc3566f85e..90f681e3c5 100644 --- a/test/files/run/exceptions.scala +++ b/test/files/run/exceptions.scala @@ -6,8 +6,8 @@ abstract class IntMap[A] { def lookup(key: Int): A = this match { - case Empty() => error("KO") - case _ => error("ok") + case Empty() => sys.error("KO") + case _ => sys.error("ok") } } |