diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-07 12:03:54 +1100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-07 12:03:54 +1100 |
commit | b41deb5920cd5bd19448bf372433d06f3d6ba43b (patch) | |
tree | a152c60949dd20ef385a243bc3b15b32af3b6910 /tests | |
parent | 8cf9d559eaec93577e16c053b5792f69bb66b06f (diff) | |
download | dotty-b41deb5920cd5bd19448bf372433d06f3d6ba43b.tar.gz dotty-b41deb5920cd5bd19448bf372433d06f3d6ba43b.tar.bz2 dotty-b41deb5920cd5bd19448bf372433d06f3d6ba43b.zip |
Another test case
Prompted by a discussion on the Scala reddit, this one
verified that dotty does not have the problem exhibited
in SI-10170. I piggyback on this PR because this does
not warrant a separate PR>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/t10170.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t10170.scala b/tests/run/t10170.scala new file mode 100644 index 000000000..683bad371 --- /dev/null +++ b/tests/run/t10170.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]) = println(f) + + def f = { + val a = 100; ({ val a = 0; (c: Int) => c })(a) + } +} |