We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6a5ce commit 3802539Copy full SHA for 3802539
compiler/src/dotty/tools/dotc/transform/PhantomArgLift.scala
@@ -52,16 +52,6 @@ class PhantomArgLift extends MiniPhaseTransform {
52
}
53
54
55
- override def transformAssign(tree: Assign)(implicit ctx: Context, info: TransformerInfo): Tree = {
56
- if (!tree.rhs.tpe.isPhantom) super.transformAssign(tree)
57
- else {
58
- // Apply the same transformation to setters before their creation.
59
- val synthVal = SyntheticValDef(TempResultName.fresh(), tree.rhs)
60
- val synthValRef = ref(synthVal.symbol)
61
- Block(List(synthVal), Assign(tree.lhs, synthValRef))
62
- }
63
64
-
65
/* private methods */
66
67
/** Returns true if at least on of the arguments is an impure phantom.
0 commit comments