Files
kotlin/compiler/testData/codegen/box/reflection/properties/genericProperty.kt
2016-11-09 21:41:12 +03:00

15 lines
321 B
Kotlin
Vendored

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