summaryrefslogblamecommitdiff
path: root/test/files/neg/t6574.scala
blob: bba97ad62e3f8577a1225492ea1227a24cf138a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                  
class Bad[X, Y](val v: Int) extends AnyVal {
  @annotation.tailrec final def notTailPos[Z](a: Int)(b: String) {
    this.notTailPos[Z](a)(b)
    println("tail")
  }

  @annotation.tailrec final def differentTypeArgs {
    {(); new Bad[String, Unit](0)}.differentTypeArgs
  }
}