diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/tailcall/tailcall.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/tailcall/tailcall.scala b/tests/pos/tailcall/tailcall.scala index 9cf373cf0..1e05840ea 100644 --- a/tests/pos/tailcall/tailcall.scala +++ b/tests/pos/tailcall/tailcall.scala @@ -3,3 +3,7 @@ class tailcall { final def fact(x: Int, acc: Int = 1): Int = if (x == 0) acc else fact(x - shift, acc * x) def id[T <: AnyRef](x: T): T = if (x eq null) x else id(x) } + +class TypedApply[T2]{ + private def firstDiff[T <: TypedApply[T2]](xs: List[T]): Int = firstDiff(xs) +}
\ No newline at end of file |