aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-02-07 12:03:54 +1100
committerMartin Odersky <odersky@gmail.com>2017-02-07 12:03:54 +1100
commitb41deb5920cd5bd19448bf372433d06f3d6ba43b (patch)
treea152c60949dd20ef385a243bc3b15b32af3b6910 /tests/run
parent8cf9d559eaec93577e16c053b5792f69bb66b06f (diff)
downloaddotty-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/run')
-rw-r--r--tests/run/t10170.scala7
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)
+ }
+}