blob: 35180bee9aebe1a13dfda8d6fda14b199bf4c598 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
object tryTyping{
def foo: Int = {
try{???; 1}
catch {
case e: Exception => 2
}
}
def foo2: Int = {
val a: (Throwable => Int) = _ match {case _ => 2}
try{???; 1}
catch a
}
}
|