Skip to content

Commit e4ff250

Browse files
committed
Kotlin: Be more permissive
I think we'll end up giving a warning/error later, but that's better than having a cast throw now.
1 parent 86034dc commit e4ff250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ open class KotlinUsesExtractor(
649649

650650
(s.isBoxedArray && s.arguments.isNotEmpty()) || s.isPrimitiveArray() -> {
651651

652-
fun replaceComponentTypeWithAny(t: IrSimpleType, dimensions: Int): IrSimpleType =
652+
fun replaceComponentTypeWithAny(t: IrSimpleType, dimensions: Int): IrType =
653653
if (dimensions == 0)
654-
pluginContext.irBuiltIns.anyType as IrSimpleType
654+
pluginContext.irBuiltIns.anyType
655655
else
656656
t.toBuilder().also { it.arguments = (it.arguments[0] as IrTypeProjection)
657657
.let { oldArg ->

0 commit comments

Comments
 (0)