summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Infer.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2014-08-22 14:55:08 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2014-09-02 11:30:21 +0200
commitb562d965dc30bb1fdd9433a6675bfe8e38b8c667 (patch)
tree3bc0dcdc6608d939d6b67fd35a2b2d16930c6ce6 /src/compiler/scala/tools/nsc/typechecker/Infer.scala
parent0a6dd09d7585448d0c66835a2d2618eb12a47786 (diff)
downloadscala-b562d965dc30bb1fdd9433a6675bfe8e38b8c667.tar.gz
scala-b562d965dc30bb1fdd9433a6675bfe8e38b8c667.tar.bz2
scala-b562d965dc30bb1fdd9433a6675bfe8e38b8c667.zip
-Ystatistics accepts a list of phases, cleanups in MultiChoiceSetting
MultiChoiceSetting and Xlint with its deprecated aliases is now a bit simpler, but there's still room for improvement, as noted in comments.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Infer.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Infer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
index fb7651ffd6..421021163e 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
@@ -552,7 +552,7 @@ trait Infer extends Checkable {
}
case _ => context.tree.pos
}
- if (settings.warnInferAny.value && context.reportErrors && canWarnAboutAny) {
+ if (settings.warnInferAny && context.reportErrors && canWarnAboutAny) {
foreachWithIndex(targs) ((targ, idx) =>
targ.typeSymbol match {
case sym @ (AnyClass | AnyValClass) =>