K2 Scripting, IR: non-class based scripts support in IR
This commit is contained in:
committed by
Space Team
parent
cc9a7480a2
commit
4af32b8d36
+1
-1
@@ -45,7 +45,7 @@ class ScriptRemoveReceiverLowering(val context: CommonBackendContext) : FileLowe
|
||||
}
|
||||
|
||||
override fun visitGetValue(expression: IrGetValue): IrExpression {
|
||||
return if (expression.symbol === script.thisReceiver.symbol) expression.nullConst()
|
||||
return if (expression.symbol === script.thisReceiver?.symbol) expression.nullConst()
|
||||
else expression
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user