File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,8 @@ class Definitions {
630
630
631
631
@ tu lazy val QuotedExprClass : ClassSymbol = ctx.requiredClass(" scala.quoted.Expr" )
632
632
@ tu lazy val QuotedExprModule : Symbol = QuotedExprClass .companionModule
633
+ @ tu lazy val QuotedExprModule_nullExpr : Symbol = QuotedExprModule .requiredMethod(nme.nullExpr)
634
+ @ tu lazy val QuotedExprModule_unitExpr : Symbol = QuotedExprModule .requiredMethod(nme.unitExpr)
633
635
634
636
@ tu lazy val QuoteContextClass : ClassSymbol = ctx.requiredClass(" scala.quoted.QuoteContext" )
635
637
@ tu lazy val QuoteContextModule : Symbol = QuoteContextClass .companionModule
Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ class ReifyQuotes extends MacroTransform {
208
208
209
209
def pickleAsLiteral (lit : Literal ) =
210
210
lit.const.tag match {
211
- case Constants .NullTag => ref(defn.QuotedExprModule ).select(nme.nullExpr )
212
- case Constants .UnitTag => ref(defn.QuotedExprModule ).select(nme.unitExpr )
211
+ case Constants .NullTag => ref(defn.QuotedExprModule_nullExpr )
212
+ case Constants .UnitTag => ref(defn.QuotedExprModule_unitExpr )
213
213
case _ => // Lifted literal
214
214
val ltp = defn.LiftableClass .typeRef.appliedTo(ConstantType (lit.const))
215
215
val liftable = ctx.typer.inferImplicitArg(ltp, body.span)
You can’t perform that action at this time.
0 commit comments