mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
187 B
Kotlin
Vendored
10 lines
187 B
Kotlin
Vendored
class LongR {
|
|
operator fun contains(l : Long): Boolean = l == 5.toLong()
|
|
}
|
|
|
|
fun box(): String {
|
|
if (5 !in LongR()) return "fail 1"
|
|
if (6 in LongR()) return "fail 2"
|
|
return "OK"
|
|
}
|