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
@@ -1,6 +1,7 @@
// !CHECK_TYPE
fun foo(arr: Array<out Number>): Int {
@Suppress("UNCHECKED_CAST")
val result = (arr as Array<Int>)[0]
checkSubtype<Array<Int>>(<!DEBUG_INFO_SMARTCAST!>arr<!>)
return result