summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-27 22:28:41 -0800
committerPaul Phillips <paulp@improving.org>2011-12-27 23:34:56 -0800
commit33ab1a574af0d5f736ab73c5a18cc6a4cb36cbb0 (patch)
tree9377b7c1ecc5f81864178e873b46289af2bfb16a /src/compiler
parent99c5d831613bf49afc702dc6aca7ce47b30eab7b (diff)
downloadscala-33ab1a574af0d5f736ab73c5a18cc6a4cb36cbb0.tar.gz
scala-33ab1a574af0d5f736ab73c5a18cc6a4cb36cbb0.tar.bz2
scala-33ab1a574af0d5f736ab73c5a18cc6a4cb36cbb0.zip
Tone down insensible-equality warning.
Closes SI-5175.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 98f1c96cad..f920f3c135 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1092,7 +1092,7 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R
}
// possibleNumericCount is insufficient or this will warn on e.g. Boolean == j.l.Boolean
- if (nullCount == 0 && !(isSpecial(receiver) && isSpecial(actual))) {
+ if (isWarnable && nullCount == 0 && !(isSpecial(receiver) && isSpecial(actual))) {
if (actual isSubClass receiver) ()
else if (receiver isSubClass actual) ()
// warn only if they have no common supertype below Object