File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
compiler/src/dotty/tools/dotc/inlines Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,6 @@ class Inliner(val call: tpd.Tree)(using Context):
386386 */
387387 private val opaqueProxies = new mutable.ListBuffer [(TermRef , TermRef )]
388388
389- /** TermRefs for which we already started synthesising proxies */
390- private val visitedTermRefs = new mutable.HashSet [TermRef ]
391-
392389 protected def hasOpaqueProxies = opaqueProxies.nonEmpty
393390
394391 /** Map first halves of opaqueProxies pairs to second halves, using =:= as equality */
@@ -416,9 +413,8 @@ class Inliner(val call: tpd.Tree)(using Context):
416413 for cls <- ref.widen.baseClasses do
417414 if cls.containsOpaques
418415 && (forThisProxy || inlinedMethod.isContainedIn(cls))
419- && ! visitedTermRefs.contains (ref)
416+ && mapRef (ref).isEmpty
420417 then
421- visitedTermRefs += ref
422418 val refiningRef = OpaqueProxy (ref, cls, call.span)
423419 val refiningSym = refiningRef.symbol.asTerm
424420 val refinedType = refiningRef.info
You can’t perform that action at this time.
0 commit comments