summaryrefslogblamecommitdiff
path: root/test/files/neg/catch-all.check
blob: aaf51480c33a51b7766f42fb2fbbd409e0e1657e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                                                                    

                                    
                                                                                                                                    

                                    
                                                                                                                                    

                                                                  


                                                          
catch-all.scala:2: warning: This catches all Throwables. If this is really intended, use `case _ : Throwable` to clear this warning.
  try { "warn" } catch { case _ => }
                              ^
catch-all.scala:4: warning: 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: warning: This catches all Throwables. If this is really intended, use `case x : Throwable` to clear this warning.
  try { "warn" } catch { case _: RuntimeException => ; case x => }
                                                            ^
error: No warnings can be incurred under -Xfatal-warnings.
three warnings found
one error found