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