Skip to content

Commit afcdc9c

Browse files
committed
Add missing Inlined node
1 parent 815e4db commit afcdc9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,10 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
450450
else paramSpan(tree.name)
451451
paramProxy.get(tree.tpe) match {
452452
case Some(t) if tree.isTerm && t.isSingleton =>
453-
singleton(t.dealias).withSpan(span)
453+
t.dealias match {
454+
case tp: ConstantType => Inlined(EmptyTree, Nil, singleton(tp).withSpan(span)).withSpan(tree.span)
455+
case tp => singleton(tp).withSpan(span)
456+
}
454457
case Some(t) if tree.isType =>
455458
TypeTree(t).withSpan(span)
456459
case _ => tree

0 commit comments

Comments
 (0)