aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-10 22:40:14 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-10 22:40:14 +0100
commit2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3 (patch)
treecd087b2c3d520703ddc4a4f89dadb06f98f95180 /src/dotty/tools/dotc/util
parenta7b60116c30677eeff310b81af2fa714bf1950d6 (diff)
downloaddotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.tar.gz
dotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.tar.bz2
dotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.zip
Reporting max constraint
Instead of throwing an exception if SImpleMap size goes over some threshold, we now report the largest constraint encountered in a run.
Diffstat (limited to 'src/dotty/tools/dotc/util')
-rw-r--r--src/dotty/tools/dotc/util/SimpleMap.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/util/SimpleMap.scala b/src/dotty/tools/dotc/util/SimpleMap.scala
index 60b9e77ed..0d6f0a2b4 100644
--- a/src/dotty/tools/dotc/util/SimpleMap.scala
+++ b/src/dotty/tools/dotc/util/SimpleMap.scala
@@ -177,10 +177,8 @@ object SimpleMap {
new Map5(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5)
}
}
- def updated[V1 >: V <: AnyRef](k: K, v: V1) = {
- assert(m.size < 12) // !!!DEBUG - want to see when maps blow up
+ def updated[V1 >: V <: AnyRef](k: K, v: V1) =
new MapMore(m.updated(k, v))
- }
override def contains(k: K) = m contains k
def mapValues[V1 >: V <: AnyRef](f: V1 => V1) = {
val assocs = m.toList