Skip to content

Commit c4a6bed

Browse files
committed
Partially revert c8c8cf5 (leaving the test)
1 parent fc41883 commit c4a6bed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/inlines/Inliner.scala

+1-5
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,6 @@ class Inliner(val call: tpd.Tree)(using Context):
383383
*/
384384
private val opaqueProxies = new mutable.ListBuffer[(TermRef, TermRef)]
385385

386-
/** TermRefs for which we already started synthesising proxies */
387-
private val visitedTermRefs = new mutable.HashSet[TermRef]
388-
389386
protected def hasOpaqueProxies = opaqueProxies.nonEmpty
390387

391388
/** Map first halves of opaqueProxies pairs to second halves, using =:= as equality */
@@ -413,9 +410,8 @@ class Inliner(val call: tpd.Tree)(using Context):
413410
for cls <- ref.widen.baseClasses do
414411
if cls.containsOpaques
415412
&& (forThisProxy || inlinedMethod.isContainedIn(cls))
416-
&& !visitedTermRefs.contains(ref)
413+
&& mapRef(ref).isEmpty
417414
then
418-
visitedTermRefs += ref
419415
val refiningRef = OpaqueProxy(ref, cls, call.span)
420416
val refiningSym = refiningRef.symbol.asTerm
421417
val refinedType = refiningRef.info

0 commit comments

Comments
 (0)