K2: fix calculating property reference type in delegated setter
This commit is an accidentally forgotten part of the KT-61045 fix #KT-61720 Fixed
This commit is contained in:
committed by
Space Team
parent
5736201e3a
commit
20cb075e56
+63
@@ -0,0 +1,63 @@
|
||||
FILE fqName:<root> fileName:/delegatedSetterShouldBeSpecialized.kt
|
||||
PROPERTY name:topLevelInt visibility:public modality:FINAL [var]
|
||||
FIELD PROPERTY_BACKING_FIELD name:topLevelInt type:kotlin.Int visibility:private [static]
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value=0
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-topLevelInt> visibility:public modality:FINAL <> () returnType:kotlin.Int
|
||||
correspondingProperty: PROPERTY name:topLevelInt visibility:public modality:FINAL [var]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun <get-topLevelInt> (): kotlin.Int declared in <root>'
|
||||
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:topLevelInt type:kotlin.Int visibility:private [static]' type=kotlin.Int origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-topLevelInt> visibility:public modality:FINAL <> (<set-?>:kotlin.Int) returnType:kotlin.Unit
|
||||
correspondingProperty: PROPERTY name:topLevelInt visibility:public modality:FINAL [var]
|
||||
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:topLevelInt type:kotlin.Int visibility:private [static]' type=kotlin.Unit origin=null
|
||||
value: GET_VAR '<set-?>: kotlin.Int declared in <root>.<set-topLevelInt>' type=kotlin.Int origin=null
|
||||
CLASS CLASS name:MyClass modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.MyClass
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.MyClass [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyClass modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
PROPERTY name:delegatedToTopLevel visibility:public modality:FINAL [delegated,var]
|
||||
FIELD PROPERTY_DELEGATE name:delegatedToTopLevel$delegate type:kotlin.reflect.KMutableProperty0<kotlin.Int> visibility:private [final]
|
||||
EXPRESSION_BODY
|
||||
PROPERTY_REFERENCE 'public final topLevelInt: kotlin.Int' field=null getter='public final fun <get-topLevelInt> (): kotlin.Int declared in <root>' setter='public final fun <set-topLevelInt> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>' type=kotlin.reflect.KMutableProperty0<kotlin.Int> origin=null
|
||||
FUN DELEGATED_PROPERTY_ACCESSOR name:<get-delegatedToTopLevel> visibility:public modality:FINAL <> ($this:<root>.MyClass) returnType:kotlin.Int
|
||||
correspondingProperty: PROPERTY name:delegatedToTopLevel visibility:public modality:FINAL [delegated,var]
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.MyClass
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun <get-delegatedToTopLevel> (): kotlin.Int declared in <root>.MyClass'
|
||||
CALL 'public final fun getValue <V> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null
|
||||
<V>: kotlin.Int
|
||||
$receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedToTopLevel$delegate type:kotlin.reflect.KMutableProperty0<kotlin.Int> visibility:private [final]' type=kotlin.reflect.KMutableProperty0<kotlin.Int> origin=null
|
||||
receiver: GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<get-delegatedToTopLevel>' type=<root>.MyClass origin=null
|
||||
thisRef: GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<get-delegatedToTopLevel>' type=<root>.MyClass origin=null
|
||||
property: PROPERTY_REFERENCE 'public final delegatedToTopLevel: kotlin.Int' field=null getter='public final fun <get-delegatedToTopLevel> (): kotlin.Int declared in <root>.MyClass' setter='public final fun <set-delegatedToTopLevel> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>.MyClass' type=kotlin.reflect.KMutableProperty1<<root>.MyClass, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE
|
||||
FUN DELEGATED_PROPERTY_ACCESSOR name:<set-delegatedToTopLevel> visibility:public modality:FINAL <> ($this:<root>.MyClass, <set-?>:kotlin.Int) returnType:kotlin.Unit
|
||||
correspondingProperty: PROPERTY name:delegatedToTopLevel visibility:public modality:FINAL [delegated,var]
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.MyClass
|
||||
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun <set-delegatedToTopLevel> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>.MyClass'
|
||||
CALL 'public final fun setValue <V> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null
|
||||
<V>: kotlin.Int
|
||||
$receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedToTopLevel$delegate type:kotlin.reflect.KMutableProperty0<kotlin.Int> visibility:private [final]' type=kotlin.reflect.KMutableProperty0<kotlin.Int> origin=null
|
||||
receiver: GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<set-delegatedToTopLevel>' type=<root>.MyClass origin=null
|
||||
thisRef: GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<set-delegatedToTopLevel>' type=<root>.MyClass origin=null
|
||||
property: PROPERTY_REFERENCE 'public final delegatedToTopLevel: kotlin.Int' field=null getter='public final fun <get-delegatedToTopLevel> (): kotlin.Int declared in <root>.MyClass' setter='public final fun <set-delegatedToTopLevel> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>.MyClass' type=kotlin.reflect.KMutableProperty1<<root>.MyClass, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE
|
||||
value: GET_VAR '<set-?>: kotlin.Int declared in <root>.MyClass.<set-delegatedToTopLevel>' type=kotlin.Int origin=null
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
Reference in New Issue
Block a user