fix for KT-80

This commit is contained in:
Alex Tkachman
2011-09-05 08:18:51 +02:00
parent ab63974fc3
commit 232fc89cca
4 changed files with 78 additions and 10 deletions
@@ -1,4 +1,11 @@
fun isDigit(a: Int) = when(a) {
in 0..9 => "digit"
else => "something"
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"
}
}