Files
kotlin/compiler/testData/codegen/patternMatching/range.jet
2011-12-20 22:56:13 +04:00

12 lines
228 B
Plaintext

fun isDigit(a: Int) : String {
val aa = java.util.ArrayList<Int> ()
aa.add(239)
return when(a) {
in aa -> "array list"
in 0..9 -> "digit"
!in 0..100 -> "not small"
else -> "something"
}
}