aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t6145.scala
blob: 4161a24b5698f8510784463a5e0b6dbe1c4708c4 (plain) (tree)
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
    }
  }
}