blob: 5107715e062828369d3510e43fcebf81fbdb4512 (
plain) (
tree)
|
|
trait SpecialException extends Throwable
object Test {
def run() {
try {
???
} catch {
case e: SpecialException => e.isInstanceOf[SpecialException]
case e =>
}
// OKAY
// (null: Throwable) match {
// case e: SpecialException => e.isInstanceOf[SpecialException]
// case e =>
// }
}
}
|