blob: 5202df655a2a87089ce4e388a100aadc5432b5a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
nonlocal-warning.scala:4: warning: This catches all Throwables. If this is really intended, use `case x : Throwable` to clear this warning.
catch { case x => 11 }
^
nonlocal-warning.scala:2: warning: catch block may intercept non-local return from method foo
def foo(l: List[Int]): Int = {
^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found
|