Fix reflection on reference to generic property

See a93484b457 for the similar fix to function
references

 #KT-12967 Fixed
This commit is contained in:
Alexander Udalov
2016-07-04 16:11:45 +03:00
parent 48fe9fb2c0
commit 3b349e9be0
4 changed files with 23 additions and 4 deletions
@@ -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"))
}