File tree 1 file changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/transform 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -209,15 +209,7 @@ class ReifyQuotes extends MacroTransform {
209
209
if (splices.nonEmpty) pickleAsTasty()
210
210
else if (isType) {
211
211
def tag (tagName : String ) = ref(defn.QuotedTypeModule ).select(tagName.toTermName)
212
- if (body.symbol == defn.UnitClass ) tag(" UnitTag" )
213
- else if (body.symbol == defn.BooleanClass ) tag(" BooleanTag" )
214
- else if (body.symbol == defn.ByteClass ) tag(" ByteTag" )
215
- else if (body.symbol == defn.CharClass ) tag(" CharTag" )
216
- else if (body.symbol == defn.ShortClass ) tag(" ShortTag" )
217
- else if (body.symbol == defn.IntClass ) tag(" IntTag" )
218
- else if (body.symbol == defn.LongClass ) tag(" LongTag" )
219
- else if (body.symbol == defn.FloatClass ) tag(" FloatTag" )
220
- else if (body.symbol == defn.DoubleClass ) tag(" DoubleTag" )
212
+ if (body.symbol.isPrimitiveValueClass) tag(s " ${body.symbol.name}Tag " )
221
213
else pickleAsTasty()
222
214
}
223
215
else toValue(body) match {
You can’t perform that action at this time.
0 commit comments