Skip to content

Commit a1755a6

Browse files
committed
fix-ci
1 parent 3ec8b86 commit a1755a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ class Inliner(val call: tpd.Tree)(using Context):
399399
* type aliases, add proxy definitions to `opaqueProxies` that expose these aliases.
400400
*/
401401
private def addOpaqueProxies(tp: Type, span: Span, forThisProxy: Boolean)(using Context): Unit =
402-
tp.foreachPartWithoutTypeParams {
402+
val foreachPartFiltered =
403+
(p: Type => Unit) => if (forThisProxy) tp.foreachPartWithoutTypeParams(p) else tp.foreachPart(p)
404+
foreachPartFiltered {
403405
case ref: TermRef =>
404406
for cls <- ref.widen.baseClasses do
405407
if cls.containsOpaques

0 commit comments

Comments
 (0)