blob: 9e1d624e52221ba3151611c6187daf99d7240e4c (
plain) (
blame)
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): Unit = {
this.notTailPos[Z](a)(b)
println("tail")
}
@annotation.tailrec final def differentTypeArgs {: Unit =
{(); new Bad[String, Unit](0)}.differentTypeArgs
}
}
|