Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/reflection/properties/genericProperty.kt
T

15 lines
329 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// 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"))
}