summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-23 16:09:16 -0700
committerPaul Phillips <paulp@improving.org>2013-04-23 16:30:31 -0700
commitcdffcf8962c9fa606c027fcb5a50a4273976a576 (patch)
treefe2c5f908f92f26f9fa8def47f1c99bb9cbddcb4 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent1da48a45b62879c2bd2904342eeff7e6e568350a (diff)
downloadscala-cdffcf8962c9fa606c027fcb5a50a4273976a576.tar.gz
scala-cdffcf8962c9fa606c027fcb5a50a4273976a576.tar.bz2
scala-cdffcf8962c9fa606c027fcb5a50a4273976a576.zip
Eliminated the accumulated feature warnings.
No, this isn't busywork, how dare you suggest such a thing. I intend my tombstone to say HERE LIES EXTEMPORE, WHO ELIMINATED A LOT OF SIP-18 WARNINGS REST IN PEACE
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 2ea986def7..0d619ea046 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3963,7 +3963,7 @@ trait Typers extends Adaptations with Tags {
case Apply(fn, args) if matches(fn) => Some((applyOp(args), fn))
case Assign(lhs, _) if matches(lhs) => Some((nme.updateDynamic, lhs))
case _ if matches(t) => Some((nme.selectDynamic, t))
- case _ => t.children flatMap findSelection headOption
+ case _ => (t.children flatMap findSelection).headOption
}
findSelection(cxTree) match {
case Some((opName, treeInfo.Applied(_, targs, _))) =>