mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
15 lines
321 B
Kotlin
Vendored
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"))
|
|
}
|