Skip to content

Commit c4f3d56

Browse files
committed
bugfix: Fix issue after backporting
1 parent a980d65 commit c4f3d56

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
369369
case UnApply(fun, implicits, patterns) =>
370370
// Reverse transform order for the same reason as in `app1` above.
371371
val patterns1 = transform(patterns)
372-
val tree1 = cpy.UnApply(tree)(transform(fun), transform(implicits), patterns1)
373-
// The pickling of UnApply trees uses the tpe of the tree,
374-
// so we need to clean retains from it here
375-
tree1.withType(transformAnnotsIn(CleanupRetains()(tree1.tpe)))
372+
cpy.UnApply(tree)(transform(fun), transform(implicits), patterns1)
376373
case tree: TypeApply =>
377374
if tree.symbol == defn.QuotedTypeModule_of then
378375
ctx.compilationUnit.needsStaging = true

tests/pos-custom-args/captures/i24207.scala

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)