Replace is Array<T> with .isArrayOf<T>()

This commit is contained in:
Alexey Tsvetkov
2015-10-09 21:22:19 +03:00
parent 01cd277d63
commit 62c25c0370
19 changed files with 114 additions and 44 deletions
+2 -2
View File
@@ -227,8 +227,8 @@ fun foo(aa: Any): Int {
}
fun inForLoop(x: Any?) {
if (x is Array<String>) {
for (i in <info descr="Smart cast to kotlin.Array<kotlin.String>">x</info>) {}
if (x is Array<*>) {
for (i in <info descr="Smart cast to kotlin.Array<*>">x</info>) {}
}
for (i in <error descr="[ITERATOR_MISSING] For-loop range must have an iterator() method">x</error>) {}
}