summaryrefslogblamecommitdiff
path: root/test/files/neg/catch-all.check
blob: ab3d28777d3208cdc56dee678d6da90e29e2a442 (plain) (tree)
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