summaryrefslogtreecommitdiff
path: root/test/files/neg/catch-all.check
blob: 62f895cc7ee9535638af25d7874fbd9fd3561684 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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.
  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.
  try { "warn" } catch { case _: RuntimeException => ; case x => }
                                                            ^
three errors found