We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3d13f6 + 9f63b0e commit d2b6f3cCopy full SHA for d2b6f3c
src/dotty/tools/dotc/util/HashSet.scala
@@ -2,7 +2,7 @@ package dotty.tools.dotc.util
2
3
/** A hash set that allows some privileged protected access to its internals
4
*/
5
-class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] with scala.collection.generic.Clearable {
+class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] {
6
private var used: Int = _
7
private var limit: Int = _
8
private var table: Array[AnyRef] = _
src/dotty/tools/dotc/util/Set.scala
@@ -23,4 +23,5 @@ abstract class Set[T >: Null] {
23
24
def toList = iterator.toList
25
26
+ def clear: Unit
27
}
0 commit comments