diff options
author | odersky <odersky@gmail.com> | 2017-02-08 22:12:20 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 22:12:20 +1100 |
commit | 40954100fa0124e58dc203561ecf3ab082949f62 (patch) | |
tree | e2da9aa04bec174f8167b9017abb33fd10e81a38 /tests/run | |
parent | b77c24cde0caa59472108a068b4d802606ad5d1b (diff) | |
parent | 937cca038ad18a10e5b759c0a4e53578032fac7c (diff) | |
download | dotty-40954100fa0124e58dc203561ecf3ab082949f62.tar.gz dotty-40954100fa0124e58dc203561ecf3ab082949f62.tar.bz2 dotty-40954100fa0124e58dc203561ecf3ab082949f62.zip |
Merge pull request #1953 from dotty-staging/fix-wildapprox
Fix to wildapprox
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/t10170.check | 1 | ||||
-rw-r--r-- | tests/run/t10170.scala | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/t10170.check b/tests/run/t10170.check new file mode 100644 index 000000000..29d6383b5 --- /dev/null +++ b/tests/run/t10170.check @@ -0,0 +1 @@ +100 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) + } +} |