Fix reflection on reference to generic property
See a93484b457 for the similar fix to function
references
#KT-12967 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
data class Box<T>(val element: T)
|
||||
|
||||
fun box(): String {
|
||||
val p = Box<String>::element
|
||||
assertEquals("val Box<T>.element: T", p.toString())
|
||||
return p.call(Box("OK"))
|
||||
}
|
||||
Reference in New Issue
Block a user