FIR2IR: fix receiver of value classes method references

This commit fixes the receiver of these method in FIR2IR code
by removing a particular hack.
However, as the consequence of it 2 black box tests become broken in K2.
The reason is KT-54952 which is not yet fixed

Related to KT-54887
This commit is contained in:
Mikhail Glukhikh
2023-05-11 11:30:25 +02:00
committed by Space Team
parent 95ec7ede66
commit c898b264ba
5 changed files with 5 additions and 6 deletions
@@ -69,7 +69,7 @@ FILE fqName:<root> fileName:/valueClassEquals.kt
PROPERTY name:equals visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:equals type:kotlin.reflect.KFunction2<<root>.Z, kotlin.Any?, kotlin.Boolean> visibility:private [final,static]
EXPRESSION_BODY
FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.reflect.KFunction2<<root>.Z, kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget=<same>
FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Z' type=kotlin.reflect.KFunction2<<root>.Z, kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget=<same>
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-equals> visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction2<<root>.Z, kotlin.Any?, kotlin.Boolean>
correspondingProperty: PROPERTY name:equals visibility:public modality:FINAL [val]
BLOCK_BODY
@@ -32,6 +32,6 @@ value class Z {
}
val equals: KFunction2<Z, Any?, Boolean>
field = Any::equals
field = Z::equals
get