Proper errors for cases like 'is Map' supported in 'when'

This commit is contained in:
Andrey Breslav
2012-11-27 21:09:17 +04:00
parent 85f7b4069f
commit 304926005f
15 changed files with 115 additions and 1 deletions
@@ -0,0 +1,7 @@
// "Add '<*>'" "true"
public fun foo(a: Any) {
when (a) {
is java.util.ArrayList<*> -> {}
else -> {}
}
}