blob: 4161a24b5698f8510784463a5e0b6dbe1c4708c4 (
plain) (
tree)
|
|
object Test {
// the existential causes a cast and the cast makes searchClass not be in tail position
// can we get rid of the useless cast?
@annotation.tailrec
final def searchClass: Class[_] = {
"packageName" match {
case _ =>
searchClass
}
}
}
|