diff options
Diffstat (limited to 'tests/pos/tailcall')
-rw-r--r-- | tests/pos/tailcall/i2024.scala | 4 | ||||
-rw-r--r-- | tests/pos/tailcall/return.scala | 2 |
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 |