diff options
Diffstat (limited to 'tests/pending/run/t7584.scala')
-rw-r--r-- | tests/pending/run/t7584.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/pending/run/t7584.scala b/tests/pending/run/t7584.scala deleted file mode 100644 index f134b04a5..000000000 --- a/tests/pending/run/t7584.scala +++ /dev/null @@ -1,14 +0,0 @@ -// Test case added to show the behaviour of functions with -// by-name parameters. The evaluation behaviour was already correct. -// -// We did flush out a spurious "pure expression does nothing in statement position" -// warning, hence -Xfatal-warnings in the flags file. -object Test extends dotty.runtime.LegacyApp { - def foo(f: (=> Int, => Int) => Unit) = f({println("a"); 0}, {println("b"); 1}) - println("no calls") - foo((a, b) => ()) - println("call A") - foo((a, b) => a) - println("call B twice") - foo((a, b) => {b; b}) -} |