Make Array type parameter T non-reified

This commit is contained in:
Alexey Tsvetkov
2015-10-08 18:17:53 +03:00
parent 62c25c0370
commit 5449cea6b7
25 changed files with 62 additions and 29 deletions
@@ -0,0 +1,5 @@
fun f(a: Array<out Number>) = a.isArrayOf<Int>()
fun f1(a: Array<out Number>) = a is Array<*>
fun f2(a: Array<out Number>) = a is <!CANNOT_CHECK_FOR_ERASED!>Array<Int><!>
@@ -0,0 +1,5 @@
package
public fun f(/*0*/ a: kotlin.Array<out kotlin.Number>): kotlin.Boolean
public fun f1(/*0*/ a: kotlin.Array<out kotlin.Number>): kotlin.Boolean
public fun f2(/*0*/ a: kotlin.Array<out kotlin.Number>): kotlin.Boolean
@@ -0,0 +1 @@
fun ff(a: Any) = a is Array<*> && <!DEBUG_INFO_SMARTCAST!>a<!>.isArrayOf<String>()
@@ -0,0 +1,3 @@
package
public fun ff(/*0*/ a: kotlin.Any): kotlin.Boolean