blob: 462ef800f43505b12dca632500fa4db2f22d089d (
plain) (
tree)
|
|
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
}
}
|