Skip to content

Commit 4c60393

Browse files
committed
Simplify type splicing
1 parent 8198f1f commit 4c60393

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ object PickledQuotes {
143143
case tp: ClassInfo =>
144144
tp.derivedClassInfo(classParents = tp.classParents.map(apply))
145145
case tp: TypeRef =>
146-
typeSpliceMap.get(tp.symbol) match
147-
case Some(t) if tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot) => mapOver(t)
148-
case _ => mapOver(tp)
146+
mapOver(typeSpliceMap.getOrElse(tp.symbol, tp))
149147
case _ =>
150148
mapOver(tp)
151149
}

0 commit comments

Comments
 (0)