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 d25a221 commit f79f06fCopy full SHA for f79f06f
src/dotty/tools/dotc/transform/linker/Simplify.scala
@@ -592,6 +592,7 @@ class Simplify extends MiniPhaseTransform with IdentityDenotTransformer {
592
private def keepOnlySideEffects(t: Tree)(implicit ctx: Context): Tree = {
593
t match {
594
case t: Literal => EmptyTree
595
+ case t: This => EmptyTree
596
case Typed(exp, tpe) =>
597
keepOnlySideEffects(exp)
598
case t @ If(cond, thenp, elsep) =>
0 commit comments