diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-24 12:22:44 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-24 14:50:59 -0700 |
commit | 8448beb2ad6346d1d04a1feedb3de4d77f61024d (patch) | |
tree | 9af420493d843ab9d225b24d17104c057a299cc6 /test/files/neg/t1872.check | |
parent | 2e0079e870911ed64c3b959fd5500ee316c936d7 (diff) | |
download | scala-8448beb2ad6346d1d04a1feedb3de4d77f61024d.tar.gz scala-8448beb2ad6346d1d04a1feedb3de4d77f61024d.tar.bz2 scala-8448beb2ad6346d1d04a1feedb3de4d77f61024d.zip |
SI-6943 warn on value class miscomparison.
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.
Diffstat (limited to 'test/files/neg/t1872.check')
0 files changed, 0 insertions, 0 deletions