We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb4bbb commit e33c632Copy full SHA for e33c632
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -338,6 +338,8 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
338
)
339
}
340
case tree: ValDef =>
341
+ if tree.symbol.is(Inline, butNot = Param) then
342
+ ctx.compilationUnit.needsInlining = true
343
val tree1 = cpy.ValDef(tree)(rhs = normalizeErasedRhs(tree.rhs, tree.symbol))
344
processValOrDefDef(super.transform(tree1))
345
case tree: DefDef =>
0 commit comments