diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2012-06-01 18:44:40 +0200 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2012-06-03 18:49:04 +0200 |
commit | 037d3dcbc5896864aec0f9121eeda23fcc4cd610 (patch) | |
tree | 69728f90715011bf07652a1f9deec757db692791 /test/files/neg/checksensible.scala | |
parent | 71006c07440af3d597e4f645af8af5df61472b09 (diff) | |
download | scala-037d3dcbc5896864aec0f9121eeda23fcc4cd610.tar.gz scala-037d3dcbc5896864aec0f9121eeda23fcc4cd610.tar.bz2 scala-037d3dcbc5896864aec0f9121eeda23fcc4cd610.zip |
Don't compute least upper bounds for expressions in statement positions inside blocks.
This may save huge amount of time (Fixes SI-5862) for complicated lubs. I had to remove the a check in adapt for
the part that transforms <expr> into { <expr>; () } when the expected type is Unit. The reason is in the
code.
As a side effect, we get more warnings for pure expressions in statement positions (see the change in the test file).
Diffstat (limited to 'test/files/neg/checksensible.scala')
-rw-r--r-- | test/files/neg/checksensible.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/checksensible.scala b/test/files/neg/checksensible.scala index 27ee908153..15a9b6d9b6 100644 --- a/test/files/neg/checksensible.scala +++ b/test/files/neg/checksensible.scala @@ -63,7 +63,7 @@ class EqEqRefTest { new Exception() != new Exception() val foo: Array[String] = Array("1","2","3") - if (foo.length == null) "plante" else "plante pas" + val dummy = if (foo.length == null) "plante" else "plante pas" // final classes with default equals val x1 = new Bip |