summaryrefslogtreecommitdiff
path: root/test/files/neg/t5663-badwarneq.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-6120 Suppress extra warningsSom Snytt2013-12-161-4/+1
| | | | | | | | | | | | | | | | This is a mere polish for the fix to allow multiple warnings. Sensibility checks in refchecks were shown to be redundant. This commit includes a mild refactor to reduce tabbage, and uses a local var to flag that a warning has already been emitted. It would be better to have the checks return true if warned, to facilitate `nonSensically || unrelatedly`, etc., but that's a lot of `else false`. The check files that were updated with the redundant warnings are reverted.
* SI-6120 multiple warnings at same position.Paul Phillips2013-09-271-1/+4
| | | | | An error suppresses all further warnings at the same position, but multiple warnings can be heard.
* Merge 2.10.x into masterAdriaan Moors2013-05-021-8/+26
|\ | | | | | | | | | | | | | | | | | | Conflicts: bincompat-forward.whitelist.conf src/compiler/scala/tools/nsc/matching/Patterns.scala src/compiler/scala/tools/nsc/transform/patmat/Logic.scala src/compiler/scala/tools/nsc/typechecker/Infer.scala src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala test/files/neg/t5663-badwarneq.check
| * SI-6943 warn on value class miscomparison.Paul Phillips2013-04-241-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a very dangerous situation running around when you combine universal equality with value classes: // All over your code val x = "abc" if (x == "abc") ... // Hey let's make x a value class val x = new ValueClass("abc") // Uh-oh There was until now no warning when comparing a value class with something else. Now there is.
* | Made -Xfatal-warnings less immediately fatal.Paul Phillips2012-08-101-8/+10
|/ | | | | | | Instead of changing warnings to errors mid-stream, at the end of a run I check for condition "no errors, some warnings, and fatal warnings" and then generate an error at that point. This is necessary to test for some warnings which come from later stages.
* SI-5663: Tweak warnings on case class equalsSom Snytt2012-04-131-0/+22
Re-enable testing the sensibility of comparing instances of two case classes. In particular, warn if we detect that the two objects inherit from different case classes. In addition, avoid emitting misleading warnings when comparing "new C".