diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-07-30 07:22:50 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-07-30 07:22:50 -0700 |
commit | 3aba55a8a89aec8aaccbdd16047cded02765d8fb (patch) | |
tree | 7cac96d9b0a89d283eb52537f2d60863ae23c5cf /test/files | |
parent | 484e49cc3ea6030f31eeb658f95845faf05e3ef0 (diff) | |
parent | 5f31daa147a08df41ce4c69abbc2abadfcb9b5ee (diff) | |
download | scala-3aba55a8a89aec8aaccbdd16047cded02765d8fb.tar.gz scala-3aba55a8a89aec8aaccbdd16047cded02765d8fb.tar.bz2 scala-3aba55a8a89aec8aaccbdd16047cded02765d8fb.zip |
Merge pull request #1014 from soc/throwable-warning
Fixes typo in Throwable compiler warning
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/catch-all.check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/catch-all.check b/test/files/neg/catch-all.check index 62f895cc7e..a9cd0ba927 100644 --- a/test/files/neg/catch-all.check +++ b/test/files/neg/catch-all.check @@ -1,10 +1,10 @@ -catch-all.scala:2: error: This catches all Throwables. If this is really intended, use `case _ : Throwable` to clear this warning. +catch-all.scala:2: error: This catches all Throwables. If this is really intended, use `case _: Throwable` to clear this warning. try { "warn" } catch { case _ => } ^ -catch-all.scala:4: error: This catches all Throwables. If this is really intended, use `case x : Throwable` to clear this warning. +catch-all.scala:4: error: This catches all Throwables. If this is really intended, use `case x: Throwable` to clear this warning. try { "warn" } catch { case x => } ^ -catch-all.scala:6: error: This catches all Throwables. If this is really intended, use `case x : Throwable` to clear this warning. +catch-all.scala:6: error: This catches all Throwables. If this is really intended, use `case x: Throwable` to clear this warning. try { "warn" } catch { case _: RuntimeException => ; case x => } ^ three errors found |