diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-23 16:09:16 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-23 16:30:31 -0700 |
commit | cdffcf8962c9fa606c027fcb5a50a4273976a576 (patch) | |
tree | fe2c5f908f92f26f9fa8def47f1c99bb9cbddcb4 /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 1da48a45b62879c2bd2904342eeff7e6e568350a (diff) | |
download | scala-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.scala | 2 |
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, _))) => |