scala/scala — pull request #653 by dragos (2012-06-01 16:55:14+00:00)
Title: Don't compute least upper bounds for if-like 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 into { ; () } 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).

Review by @odersky, @adriaanm.