mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
15 lines
267 B
Kotlin
Vendored
15 lines
267 B
Kotlin
Vendored
import kotlin.test.assertEquals
|
|
|
|
fun box(): String {
|
|
val f = J::x
|
|
assertEquals("x", f.name)
|
|
|
|
assertEquals(f, J::class.members.single { it.name == "x" })
|
|
|
|
f.set("OK")
|
|
assertEquals("OK", J.x)
|
|
assertEquals("OK", f.getter())
|
|
|
|
return f.get()
|
|
}
|