41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
14 lines
219 B
Kotlin
14 lines
219 B
Kotlin
var x = 0
|
|
fun inc(): Int {
|
|
x++
|
|
return 0
|
|
}
|
|
fun box(): String {
|
|
val al = java.util.ArrayList<Int>()
|
|
when (inc()) {
|
|
in al -> return "fail 1"
|
|
else -> {}
|
|
}
|
|
return if (x == 1) "OK" else "fail 2"
|
|
}
|