41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
18 lines
300 B
Kotlin
18 lines
300 B
Kotlin
class MyRange1() : Range<Int> {
|
|
override fun contains(item: Int) = true
|
|
}
|
|
|
|
class MyRange2() {
|
|
fun contains(item: Int) = true
|
|
}
|
|
|
|
fun box(): String {
|
|
if (1 in MyRange1()) {
|
|
if (1 in MyRange2()) {
|
|
return "OK"
|
|
}
|
|
return "fail 2"
|
|
}
|
|
return "fail 1"
|
|
}
|