We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d553e commit c5f3503Copy full SHA for c5f3503
compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala
@@ -124,7 +124,7 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
124
val targs2 = targs.map(targ => TypeTree(healTypeOfTerm(quote.fun.srcPos)(targ.tpe)))
125
cpy.Apply(quote)(cpy.TypeApply(quote.fun)(fun, targs2), body2 :: Nil)
126
else
127
- val quotes = quote.args.map(transform)
+ val quotes = quote.args.mapConserve(transform)
128
body.tpe match
129
case tp @ TypeRef(x: TermRef, _) if tp.symbol == defn.QuotedType_splice =>
130
// Optimization: `quoted.Type.of[x.Underlying](quotes)` --> `x`
0 commit comments