deprecating types after colon
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(arr: Array<out Number>): Int {
|
||||
val result = (arr as Array<Int>)[0]
|
||||
<!DEBUG_INFO_SMARTCAST!>arr<!> : Array<Int>
|
||||
checkSubtype<Array<Int>>(<!DEBUG_INFO_SMARTCAST!>arr<!>)
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user