aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2017-04-05 13:22:41 +0200
committerGitHub <noreply@github.com>2017-04-05 13:22:41 +0200
commit4f4e37325fb5160905b2ba9dcdb95994c791390b (patch)
tree4be896ad32f9ca7618d160e58f705e55c3d93088 /tests
parent586113dab51d95f2a606c83b2cd31563ac47a6cf (diff)
parent176f40a6daccbd5365988e66d84e44cba818e64a (diff)
downloaddotty-4f4e37325fb5160905b2ba9dcdb95994c791390b.tar.gz
dotty-4f4e37325fb5160905b2ba9dcdb95994c791390b.tar.bz2
dotty-4f4e37325fb5160905b2ba9dcdb95994c791390b.zip
Merge pull request #2025 from dotty-staging/fix-2024
Fix #2024: TypeApply can be a final apply of a recursive method.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/tailcall/i2024.scala4
-rw-r--r--tests/pos/tailcall/return.scala2
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/pos/tailcall/i2024.scala b/tests/pos/tailcall/i2024.scala
new file mode 100644
index 000000000..aba1db2e5
--- /dev/null
+++ b/tests/pos/tailcall/i2024.scala
@@ -0,0 +1,4 @@
+object Test {
+// def main(args: Array[String]): Unit = { }
+ def assume[T]: Any = assume
+}
diff --git a/tests/pos/tailcall/return.scala b/tests/pos/tailcall/return.scala
index 454686c3d..3724b5b32 100644
--- a/tests/pos/tailcall/return.scala
+++ b/tests/pos/tailcall/return.scala
@@ -1,4 +1,4 @@
-object Test {
+object Return {
def foo(x: Int): Int = return 3