Files
kotlin/compiler/testData/codegen/patternMatching/longInRange.kt
2013-01-24 21:12:27 +04:00

9 lines
177 B
Kotlin

class LongR {
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"
}