diff options
author | Martin Odersky <odersky@gmail.com> | 2014-10-29 11:52:43 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-11-09 10:17:34 +0100 |
commit | 936e83f3617e7dd1b9141cf20b1dc8ec3482df97 (patch) | |
tree | c268d2f3b199c80d0a5298070e49621f8c260331 /test | |
parent | 252b6d9f3a80bdfc789e2f5b463ee7dc7a10b659 (diff) | |
download | dotty-936e83f3617e7dd1b9141cf20b1dc8ec3482df97.tar.gz dotty-936e83f3617e7dd1b9141cf20b1dc8ec3482df97.tar.bz2 dotty-936e83f3617e7dd1b9141cf20b1dc8ec3482df97.zip |
New phase: RestoreScopes
Cleans up after LambdaLift and Flatten. RestoreScopes exhibited a problem (double definition)
when compiling Unpickler. The root of the problem was in Applications.scala. The effect was
that arguments woulkd be lifted out, but then the argument expression would be used anyway. That caused
a closure to be present twice which caused the double def error much later. -Ycheck did not catch it because
the two closure expressions were in non-overlapping scopes.
Diffstat (limited to 'test')
-rw-r--r-- | test/dotc/tests.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index ac1fbe735..a52f79abd 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -15,7 +15,7 @@ class tests extends CompilerTest { implicit val defaultOptions = noCheckOptions ++ List( "-Yno-deep-subtypes", - "-Ycheck:patternMatcher,gettersSetters,flatten" + "-Ycheck:patternMatcher,gettersSetters,restoreScopes" ) val twice = List("#runs", "2", "-YnoDoubleBindings") |