Skip to content

Commit 8307685

Browse files
committed
Fix inlining of parameters of singleton type
1 parent 189973b commit 8307685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
401401
}
402402
case tree: Ident =>
403403
paramProxy.get(tree.tpe) match {
404-
case Some(t) if tree.isTerm && t.isSingleton => singleton(t).withPos(tree.pos)
404+
case Some(t) if tree.isTerm && t.isSingleton => singleton(t.dealias).withPos(tree.pos)
405405
case Some(t) if tree.isType => TypeTree(t).withPos(tree.pos)
406406
case _ => tree
407407
}

0 commit comments

Comments
 (0)