[FIR] Fix captured type arguments of local class as callable reference LHS
#KT-66267
This commit is contained in:
committed by
Space Team
parent
66212c0ec6
commit
4c93e9cff6
+13
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user