File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -163,16 +163,10 @@ class ReifyQuotes extends MacroTransform {
163
163
}
164
164
165
165
def pickleAsTasty () = {
166
- val meth =
167
- if (isType) ref(defn.Unpickler_unpickleType ).appliedToType(originalTp)
168
- else
169
- val tpe =
170
- if originalTp =:= defn.NilModule .termRef then originalTp // Workaround #4987
171
- else originalTp.dealias
172
- ref(defn.Unpickler_unpickleExpr ).appliedToType(tpe)
166
+ val meth = if isType then defn.Unpickler_unpickleType else defn.Unpickler_unpickleExpr
173
167
val pickledQuoteStrings = liftList(PickledQuotes .pickleQuote(body).map(x => Literal (Constant (x))), defn.StringType )
174
168
val splicesList = liftList(splices, defn.FunctionType (1 ).appliedTo(defn.SeqType .appliedTo(defn.AnyType ), defn.AnyType ))
175
- meth.appliedTo(pickledQuoteStrings, splicesList)
169
+ ref( meth).appliedToType(originalTp) .appliedTo(pickledQuoteStrings, splicesList)
176
170
}
177
171
178
172
def taggedType (sym : Symbol ) = ref(defn.InternalQuotedTypeModule ).select(sym.name.toTermName)
You can’t perform that action at this time.
0 commit comments