blob: 7c58605d39c62ca6bd0756bc9e3dc1ba69adba75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
object Test {
def e(msg: String) = new Exception(msg)
// this code ain't dead.
def a(b: Boolean) = {
b match {
case true => throw e("true")
case false => throw e("false")
}
}
}
|