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 e467a03 commit f2cef0bCopy full SHA for f2cef0b
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -289,7 +289,11 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
289
tree.fun,
290
tree.args.mapConserve(arg =>
291
if (methType.isImplicitMethod && arg.span.isSynthetic)
292
- PruneErasedDefs.trivialErasedTree(arg)
+ arg match
293
+ case _: RefTree | _: Apply | _: TypeApply if arg.symbol.is(Erased) =>
294
+ dropInlines.transform(arg)
295
+ case _ =>
296
+ PruneErasedDefs.trivialErasedTree(arg)
297
else dropInlines.transform(arg)))
298
else
299
tree
0 commit comments