diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-06-08 14:44:30 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-06-08 14:44:30 +0000 |
commit | df426a0c139592e66236dab3b5f0f327dde3fb4f (patch) | |
tree | 6b43ef1e30d9fd97b842cf67179cb2a7a587d9b0 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala | |
parent | 139d4300d8073514a4825eb390fe083bc483989f (diff) | |
download | scala-df426a0c139592e66236dab3b5f0f327dde3fb4f.tar.gz scala-df426a0c139592e66236dab3b5f0f327dde3fb4f.tar.bz2 scala-df426a0c139592e66236dab3b5f0f327dde3fb4f.zip |
Use `keySet' and `valueIterable' to get keys an...
Use `keySet' and `valueIterable' to get keys and values from a map as
non-iterator collections.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 74a0a6c464..7d0268c6af 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -471,7 +471,7 @@ self: Analyzer => if (best == NoImplicitInfo) SearchFailure else { /** The list of all applicable infos which are not improved upon by `best`. */ - val competing = applicable.keys dropWhile (alt => best == alt || improves(best, alt)) + val competing = applicable.keySet dropWhile (alt => best == alt || improves(best, alt)) if (!competing.isEmpty) ambiguousImplicitError(best, competing.iterator.next, "both", "and", "") // !!! streamline when new collection is there // Also check that applicable infos that did not get selected are not |