aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/i1569.check2
-rw-r--r--tests/run/i1569.scala5
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/i1569.check b/tests/run/i1569.check
new file mode 100644
index 000000000..0d55bed3a
--- /dev/null
+++ b/tests/run/i1569.check
@@ -0,0 +1,2 @@
+foo
+foo
diff --git a/tests/run/i1569.scala b/tests/run/i1569.scala
new file mode 100644
index 000000000..2c5dd4e5a
--- /dev/null
+++ b/tests/run/i1569.scala
@@ -0,0 +1,5 @@
+object Test {
+ inline def foo(inline n: => Int) = n + n
+
+ def main(args: Array[String]): Unit = foo({ println("foo"); 42 })
+}