aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/static/i2054.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run/static/i2054.scala b/tests/run/static/i2054.scala
new file mode 100644
index 000000000..576e42d79
--- /dev/null
+++ b/tests/run/static/i2054.scala
@@ -0,0 +1,13 @@
+import scala.annotation.static
+
+class Test
+
+object Test {
+ @static def test(n: Int): Int = {
+ List(3).map(_ + 2)
+ n
+ }
+
+ def main(args: Array[String]): Unit = test(3)
+}
+