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
+3
View File
@@ -0,0 +1,3 @@
fun f(x: Any): Boolean = x is Array<*> && x.isArrayOf<String>()
// 2 INSTANCEOF