Skip to content

Commit 88a18e5

Browse files
committed
Fix caching problem when computing implicit scopes
Caches were set when information was not complete yet. Problem was exhibited by missing some `eqName` implicits when adding safe equality for Name.
1 parent 76513b9 commit 88a18e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ trait ImplicitRunInfo { self: RunInfo =>
361361
computeIScope(cacheResult = false)
362362
else implicitScopeCache get tp match {
363363
case Some(is) => is
364-
case None => computeIScope(cacheResult = true)
364+
case None => computeIScope(cacheResult = seen.isEmpty)
365365
}
366366
}
367367

0 commit comments

Comments
 (0)