Make Array type parameter T non-reified
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user