Files
kotlin/compiler/testData/codegen/patternMatching/range.jet
2011-10-20 16:21:18 +02: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"
}
}