diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/static/i2054.scala | 13 |
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) +} + |