mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
13 lines
231 B
Kotlin
13 lines
231 B
Kotlin
val String.id: String
|
|
get() = this
|
|
|
|
fun box(): String {
|
|
val pr = String::id
|
|
|
|
if (pr["123"] != "123") return "Fail value: ${pr["123"]}"
|
|
|
|
if (pr.name != "id") return "Fail name: ${pr.name}"
|
|
|
|
return pr.get("OK")
|
|
}
|