mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
13 lines
239 B
Kotlin
Vendored
13 lines
239 B
Kotlin
Vendored
val String.id: String
|
|
get() = this
|
|
|
|
fun box(): String {
|
|
val pr = String::id
|
|
|
|
if (pr.get("123") != "123") return "Fail value: ${pr.get("123")}"
|
|
|
|
if (pr.name != "id") return "Fail name: ${pr.name}"
|
|
|
|
return pr.get("OK")
|
|
}
|