summaryrefslogtreecommitdiff
path: root/test/files/neg/checksensible.scala
Commit message (Collapse)AuthorAgeFilesLines
* Revert "#653 -- no lub for statement exprs' types"Adriaan Moors2012-06-031-1/+1
| | | | | | | | | I should not have merged this pull request yet. I didn't notice we didn't have a full successful run of the test suite. It looks like it breaks test/files/continuations-neg/lazy.scala and given the pending amount of changes, I prefer to have a stable master. This reverts commit 037d3dcbc5896864aec0f9121eeda23fcc4cd610.
* Don't compute least upper bounds for expressions in statement positions ↵Iulian Dragos2012-06-031-1/+1
| | | | | | | | | | 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).
* Begone t1737...Hubert Plociniczak2011-11-021-12/+12
|
* Fix for comparison warnings.Paul Phillips2011-10-181-0/+6
| | | | | | | | | | | | true == new java.lang.Boolean(true) will in fact sometimes be true. Also fixes a bug caused by this change in r23627. - lazy val SerializableClass = getClass(sn.Serializable) + lazy val SerializableClass = getClass("scala.Serializable") It used to be java.io.Serializable. Hey, let's not change the meaning of existing symbols which are in active use. No review.
* Brought back unrelated type comparison warning.Paul Phillips2011-09-091-2/+3
| | | | | | Figured out how to turn it on by default, even. Closes SI-4979, no review.
* More fiddling with checkSensible.Paul Phillips2010-12-011-3/+4
| | | | | | | | | | warnings. Fixed some bugs revealed by said warnings, and made some minor changes to avoid warnings. (Technically it's not a bug to have unrelated classes compare as equal, but it so often is a bug that it behooves us not to do it intentionally so the warnings stand out.) Disabled the most useful warning for the moment since it'd be wrong with some frequency. No review.
* Found several minor thigns wrong with checkSens...Paul Phillips2010-11-301-2/+6
| | | | | | | Found several minor thigns wrong with checkSensible, which tries to issue warnings for comparisons which will always be true or false. No review.
* An overhaul of checkSensible.Paul Phillips2010-08-101-23/+73
| | | | | | | | gives fewer insensible warnings about actually sensible things, etc. Large test case with 30 warnings elicited. Closes #282 (again), no review.
* Updated remaining test case to reflect the slig...Paul Phillips2009-10-201-2/+0
| | | | | | Updated remaining test case to reflect the slightly differing semantics of the Ordering fix.
* massive new collections checkin.Martin Odersky2009-05-081-1/+1
|
* More deprecation warnings fixed.Iulian Dragos2008-05-191-2/+2
|
* removed Console, added 2 testsmichelou2007-03-301-10/+10
|
* fixed bug1011Martin Odersky2007-03-231-0/+5
|
* edited testsMartin Odersky2007-03-221-1/+3
|
* modified sinsibility checks and test casesMartin Odersky2007-03-221-0/+7
|
* (1) added readLong to Console.Martin Odersky2007-03-221-0/+26
(2) added print/read methods to Predef (3) added warnings for non-sensical comparisons