blob: c151814cde338f58e465cda3cc13d9784fc059bc [file]
// RUN_PIPELINE_TILL: FRONTEND
// CHECK_TYPE
fun foo(arr: Array<out Number>): Int {
@Suppress("UNCHECKED_CAST")
val result = (arr as Array<Int>)[0]
checkSubtype<Array<Int>>(arr)
return result
}
/* GENERATED_FIR_TAGS: asExpression, classDeclaration, funWithExtensionReceiver, functionDeclaration, functionalType,
infix, integerLiteral, localProperty, nullableType, outProjection, propertyDeclaration, smartcast, stringLiteral,
typeParameter, typeWithExtension */