summaryrefslogtreecommitdiff
path: root/test/files/neg/t5663-badwarneq.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6943 warn on value class miscomparison.Paul Phillips2013-04-241-0/+18
| | | | | | | | | | | | | | | | 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.
* SI-5663: Tweak warnings on case class equalsSom Snytt2012-04-131-0/+76
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".