aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t7899.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t7899.scala')
-rw-r--r--tests/pending/run/t7899.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pending/run/t7899.scala b/tests/pending/run/t7899.scala
index 5879d4b9f..2720cb89c 100644
--- a/tests/pending/run/t7899.scala
+++ b/tests/pending/run/t7899.scala
@@ -1,4 +1,4 @@
-object Test extends App {
+object Test extends dotty.runtime.LegacyApp {
def id[A](a: => A): A = null.asInstanceOf[A]
def foo(f: (=> Int) => Int) = () => f(???)
foo(id)() // should be allowed and not throw ???