[IR] Don't use the GET_PROPERTY origin on IrGetField expressions.
This origin was set somewhat arbitrarily. It actually only makes sense for `IrCall`s to property getters. There were no places in lowerings that checked `IrGetField` expressions for this origin value. ^KT-62500 Fixed
This commit is contained in:
committed by
Space Team
parent
f9ea353b60
commit
ad9f7bf90e
+1
-1
@@ -32,7 +32,7 @@
|
||||
@27:16..25 BLOCK_BODY
|
||||
@27:25..25 RETURN type=kotlin.Nothing from='public final fun <get-x> (): kotlin.Int declared in <root>.Foo'
|
||||
@27:16..25 CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS
|
||||
@27:16..21 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=GET_PROPERTY
|
||||
@27:16..21 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||
@27:16..21 GET_VAR '<this>: <root>.Foo declared in <root>.Foo.<get-x>' type=<root>.Foo origin=null
|
||||
@27:24..25 CONST Int type=kotlin.Int value=1
|
||||
@30:4..32:5 FUN name:test visibility:public modality:FINAL <> ($this:<root>.Foo) returnType:kotlin.Unit
|
||||
|
||||
Reference in New Issue
Block a user