diff options
author | liu fengyun <liu@fengy.me> | 2017-03-18 11:57:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-18 11:57:08 +0100 |
commit | 8b2d315936149efb15ded478fcc1d95ac9650e56 (patch) | |
tree | c6224496eccb39860f9b5d08fceb9055b6e15cbc /tests | |
parent | d0621108bad55f9fc66c1c5ade9a0b7edb3117e7 (diff) | |
parent | d45c09acb49c862f38d1de588abac3412876e32e (diff) | |
download | dotty-8b2d315936149efb15ded478fcc1d95ac9650e56.tar.gz dotty-8b2d315936149efb15ded478fcc1d95ac9650e56.tar.bz2 dotty-8b2d315936149efb15ded478fcc1d95ac9650e56.zip |
Merge pull request #2058 from dotty-staging/fix-2054
Fix #2054
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) +} + |