diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-17 13:00:59 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-17 13:00:59 +0200 |
commit | 58d4706463b08f2e448c3021adad809e6046e0fe (patch) | |
tree | acee1e319a6c4ffcb9feef976cdfdd78a2568ea6 /test | |
parent | f91f030290ac817888a6249d91118f42b560ab87 (diff) | |
download | dotty-58d4706463b08f2e448c3021adad809e6046e0fe.tar.gz dotty-58d4706463b08f2e448c3021adad809e6046e0fe.tar.bz2 dotty-58d4706463b08f2e448c3021adad809e6046e0fe.zip |
Split Nullarify functionality to ElimByName, Erasure
New phase ElimByName elimintaes by-name parameters. All other
occurrences of parameterless methods and ExprTypes are eliminated
in erasure.
The reason for the split like this is that it is very hard for
Nullarify to determine when to insert ()'s. The logic for this
is fragile because we need to look at previous denotations which might
not exist (before splitter) or might result from a merge
between parameterless and nullary methods. In Erasure
the same is much simpler to achieve.
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 795e11c75..f973bd1e0 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -14,7 +14,7 @@ class tests extends CompilerTest { "-pagewidth", "160") implicit val defaultOptions = noCheckOptions ++ List( - "-Ycheck:splitter" + "-Ycheck:elimByName" ) val twice = List("#runs", "2", "-YnoDoubleBindings") |