We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43a553d + 0ee72a5 commit e1a153aCopy full SHA for e1a153a
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -921,10 +921,17 @@ open class KotlinUsesExtractor(
921
}
922
923
private fun extendsAdditionAllowed(t: IrType) =
924
- if (t.isBoxedArray)
925
- arrayExtendsAdditionAllowed(t as IrSimpleType)
926
- else
+ if (t.isBoxedArray) {
+ if (t is IrSimpleType) {
+ arrayExtendsAdditionAllowed(t)
927
+ } else {
928
+ logger.warn("Boxed array of unexpected kind ${t.javaClass}")
929
+ // Return false, for no particular reason
930
+ false
931
+ }
932
933
((t as? IrSimpleType)?.classOrNull?.owner?.isFinalClass) != true
934
935
936
private fun wildcardAdditionAllowed(v: Variance, t: IrType, addByDefault: Boolean) =
937
when {
0 commit comments