[FIR] Fix captured type arguments of local class as callable reference LHS

#KT-66267
This commit is contained in:
Kirill Rakhman
2024-03-05 16:14:27 +01:00
committed by Space Team
parent 66212c0ec6
commit 4c93e9cff6
24 changed files with 163 additions and 10 deletions
@@ -0,0 +1,13 @@
import kotlin.reflect.KProperty1
fun <T> genericFun(value: T): T {
class Local(val item: T)
val unwrapItem: KProperty1<Local, T> = Local::item
return unwrapItem(Local(value))
}
fun box(): String {
return genericFun("OK")
}