We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e7de0 commit 601b11eCopy full SHA for 601b11e
tests/pos/tailcall/tailcall.scala
@@ -3,3 +3,7 @@ class tailcall {
3
final def fact(x: Int, acc: Int = 1): Int = if (x == 0) acc else fact(x - shift, acc * x)
4
def id[T <: AnyRef](x: T): T = if (x eq null) x else id(x)
5
}
6
+
7
+class TypedApply[T2]{
8
+ private def firstDiff[T <: TypedApply[T2]](xs: List[T]): Int = firstDiff(xs)
9
+}
0 commit comments