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
+1 -1
View File
@@ -1 +1 @@
fun f(a: Array<out Number>) = a is Array<Int>
fun f(a: Array<out Number>) = a.isArrayOf<Int>()
+1 -1
View File
@@ -1 +1 @@
fun ff(a: Any) = a is Array<String>
fun ff(a: Any) = a is Array<*> && <!DEBUG_INFO_SMARTCAST!>a<!>.isArrayOf<String>()