File tree 1 file changed +3
-3
lines changed
src/dotty/tools/dotc/typer 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -570,13 +570,12 @@ class Namer { typer: Typer =>
570
570
denot.addAnnotation(ann)
571
571
if (cls == defn.InlineAnnot && denot.is(Method , butNot = Accessor ))
572
572
denot.setFlag(Inline )
573
- if (denot.isInlineMethod) addInlineInfo(denot, original)
574
573
}
575
574
case _ =>
576
575
}
577
576
578
- private def addInlineInfo (denot : SymDenotation , original : untpd. Tree ) = original match {
579
- case original : untpd.DefDef =>
577
+ private def addInlineInfo (denot : SymDenotation ) = original match {
578
+ case original : untpd.DefDef if denot.isInlineMethod =>
580
579
Inliner .registerInlineInfo(
581
580
denot,
582
581
implicit ctx => typedAheadExpr(original).asInstanceOf [tpd.DefDef ].rhs
@@ -589,6 +588,7 @@ class Namer { typer: Typer =>
589
588
*/
590
589
def completeInCreationContext (denot : SymDenotation ): Unit = {
591
590
addAnnotations(denot)
591
+ addInlineInfo(denot)
592
592
denot.info = typeSig(denot.symbol)
593
593
Checking .checkWellFormed(denot.symbol)
594
594
}
You can’t perform that action at this time.
0 commit comments