3b349e9be0
See a93484b457 for the similar fix to function
references
#KT-12967 Fixed
12 lines
225 B
Kotlin
Vendored
12 lines
225 B
Kotlin
Vendored
// 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"))
|
|
}
|