Files
kotlin-fork/backend.native/tests/external/codegen/box/when/longInRange.kt
T
2017-03-13 15:31:46 +03:00

10 lines
187 B
Kotlin

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"
}