aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-08 22:12:20 +1100
committerGitHub <noreply@github.com>2017-02-08 22:12:20 +1100
commit40954100fa0124e58dc203561ecf3ab082949f62 (patch)
treee2da9aa04bec174f8167b9017abb33fd10e81a38 /tests/run
parentb77c24cde0caa59472108a068b4d802606ad5d1b (diff)
parent937cca038ad18a10e5b759c0a4e53578032fac7c (diff)
downloaddotty-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.check1
-rw-r--r--tests/run/t10170.scala7
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)
+ }
+}