Pseudocode: Copy value of JetThisExpression to enclosed JetSimpleNameExpression
This commit is contained in:
@@ -296,6 +296,8 @@ public class JetControlFlowProcessor {
|
||||
if (resultingDescriptor instanceof ReceiverParameterDescriptor) {
|
||||
builder.readThis(expression, (ReceiverParameterDescriptor) resultingDescriptor);
|
||||
}
|
||||
|
||||
copyValue(expression, expression.getInstanceReference());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -9,6 +9,7 @@ abstract class Bar {
|
||||
fun foo() = "foo" + this.$bar
|
||||
---------------------
|
||||
"foo" <v0> NEW()
|
||||
this <v1> COPY
|
||||
this <v1> NEW()
|
||||
$bar <v2> NEW(<v1>)
|
||||
this.$bar <v2> COPY
|
||||
|
||||
Reference in New Issue
Block a user