File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -649,17 +649,17 @@ open class KotlinUsesExtractor(
649
649
650
650
(s.isBoxedArray && s.arguments.isNotEmpty()) || s.isPrimitiveArray() -> {
651
651
652
- fun replaceComponentTypeWithAny (t : IrSimpleType , dimensions : Int ): IrSimpleType =
652
+ fun replaceComponentTypeWithAny (t : IrSimpleType , dimensions : Int ): IrType =
653
653
if (dimensions == 0 )
654
- pluginContext.irBuiltIns.anyType as IrSimpleType
654
+ pluginContext.irBuiltIns.anyType
655
655
else
656
656
t.toBuilder().also { it.arguments = (it.arguments[0 ] as IrTypeProjection )
657
657
.let { oldArg ->
658
658
listOf (makeTypeProjection(replaceComponentTypeWithAny(oldArg.type as IrSimpleType , dimensions - 1 ), oldArg.variance))
659
659
}
660
660
}.buildSimpleType()
661
661
662
- var componentType = s.getArrayElementType(pluginContext.irBuiltIns)
662
+ var componentType: IrType = s.getArrayElementType(pluginContext.irBuiltIns)
663
663
var isPrimitiveArray = false
664
664
var dimensions = 0
665
665
var elementType: IrType = s
You can’t perform that action at this time.
0 commit comments