diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/mutable/BitSet.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/collection/mutable/BitSet.scala b/src/library/scala/collection/mutable/BitSet.scala index 66d5baac54..33fbebf324 100644 --- a/src/library/scala/collection/mutable/BitSet.scala +++ b/src/library/scala/collection/mutable/BitSet.scala @@ -60,6 +60,9 @@ class BitSet (protected var elems: Array[Long]) extends Set[Int] def += (elem: Int): this.type = { add(elem); this } def -= (elem: Int): this.type = { remove(elem); this } + override def clear() { + elems = new Array[Long](elems.length) + } def toImmutable = immutable.BitSet.fromArray(elems) override def clone(): BitSet = { |