diff options
author | michelou <michelou@epfl.ch> | 2003-08-06 09:05:29 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2003-08-06 09:05:29 +0000 |
commit | 8a3fd993d848eefaa4b6dc446fa4d0ad310a7a6e (patch) | |
tree | aed87abb5c726372575c96e66aecf6a9f75e086e /sources | |
parent | 8f8b0efb39fa3cbed7a5cb82444734d5a2281a89 (diff) | |
download | scala-8a3fd993d848eefaa4b6dc446fa4d0ad310a7a6e.tar.gz scala-8a3fd993d848eefaa4b6dc446fa4d0ad310a7a6e.tar.bz2 scala-8a3fd993d848eefaa4b6dc446fa4d0ad310a7a6e.zip |
- changed 'as' to 'asInstanceOf'
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/collection/mutable/Map.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/scala/collection/mutable/Map.scala b/sources/scala/collection/mutable/Map.scala index 9d74ff675e..f6cc9146e2 100644 --- a/sources/scala/collection/mutable/Map.scala +++ b/sources/scala/collection/mutable/Map.scala @@ -4,9 +4,10 @@ ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** -** $Id$ \* */ +// $Id$ + package scala.collection.mutable; @@ -27,7 +28,7 @@ trait Map[A, B] with scala.collection.Map[A, B] { def +=(key: A): MapTo = new MapTo(key); def incl(mappings: Pair[A, B]*): Unit = { - val ys = mappings as List[Pair[A, B]]; + val ys = mappings.asInstanceOf[List[Pair[A, B]]]; ys foreach { case Pair(key, value) => update(key, value); }; } |