Skip to content

Commit b0b19d0

Browse files
committed
Clear useCount map after runs.
1 parent b689e40 commit b0b19d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,10 @@ trait ImplicitRunInfo { self: RunInfo =>
491491
override def default(key: TermRef) = 0
492492
}
493493

494-
def clear() = implicitScopeCache.clear()
494+
def clear() = {
495+
implicitScopeCache.clear()
496+
useCount.clear()
497+
}
495498
}
496499

497500
/** The implicit resolution part of type checking */

0 commit comments

Comments
 (0)