blob: c9d652bb0cb5210822c7f374a939d0970bf22433 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
object Test {
def main(args: Array[String]): Unit = {
try {
Int.box(???) // crashed the compiler: java.util.NoSuchElementException: key not found: Lscala/runtime/Nothing$;
sys.error("no exception")
} catch {
case _: NotImplementedError =>
// oka
case e: Throwable =>
sys.error("wrong exception: " + e)
}
}
}
|