Skip to content

Commit bb608b8

Browse files
committed
updated EqLinkedHashSet.clear signature
1 parent e0396bf commit bb608b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/util/EqLinkedHashSet.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class EqLinkedHashSet[T](
2121
map -= x
2222
if map.size != linkingArray.size then linkingArray -= x
2323

24-
override def clear(): Unit =
25-
map.clear()
24+
override def clear(resetToInitial: Boolean = true): Unit =
25+
map.clear(resetToInitial)
2626
linkingArray.clear()
2727

2828
override def lookup(x: T): T | Null = if map.contains(x) then x else null

0 commit comments

Comments
 (0)