File tree 2 files changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -134,4 +134,5 @@ class ReTyper extends Typer with ReChecking {
134
134
override protected def addAccessorDefs (cls : Symbol , body : List [Tree ])(using Context ): List [Tree ] = body
135
135
override protected def checkEqualityEvidence (tree : tpd.Tree , pt : Type )(using Context ): Unit = ()
136
136
override protected def matchingApply (methType : MethodOrPoly , pt : FunProto )(using Context ): Boolean = true
137
+ override protected def typedScala2MacroBody (call : untpd.Tree )(using Context ): Tree = promote(call)
137
138
}
Original file line number Diff line number Diff line change @@ -3900,7 +3900,7 @@ class Typer extends Namer
3900
3900
report.warning(PureExpressionInStatementPosition (original, exprOwner), original.srcPos)
3901
3901
3902
3902
/** Types the body Scala 2 macro declaration `def f = macro <body>` */
3903
- private def typedScala2MacroBody (call : untpd.Tree )(using Context ): Tree =
3903
+ protected def typedScala2MacroBody (call : untpd.Tree )(using Context ): Tree =
3904
3904
// TODO check that call is to a method with valid signature
3905
3905
def typedPrefix (tree : untpd.RefTree )(splice : Context ?=> Tree => Tree )(using Context ): Tree = {
3906
3906
tryAlternatively {
You can’t perform that action at this time.
0 commit comments