blob: 28334d4420b4ddea7c6fe328aef6e2137c69a9d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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
}
}
}
|