Skip to content

Commit d2b6f3c

Browse files
committed
Merge pull request #570 from dotty-staging/no-clearable
Do not depend on scala.collection.generic.Clearable in dotty.
2 parents d3d13f6 + 9f63b0e commit d2b6f3c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dotty/tools/dotc/util/HashSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package dotty.tools.dotc.util
22

33
/** A hash set that allows some privileged protected access to its internals
44
*/
5-
class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] with scala.collection.generic.Clearable {
5+
class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] {
66
private var used: Int = _
77
private var limit: Int = _
88
private var table: Array[AnyRef] = _

src/dotty/tools/dotc/util/Set.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ abstract class Set[T >: Null] {
2323

2424
def toList = iterator.toList
2525

26+
def clear: Unit
2627
}

0 commit comments

Comments
 (0)