mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
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.
This commit is contained in:
@@ -649,9 +649,9 @@ open class KotlinUsesExtractor(
|
||||
|
||||
(s.isBoxedArray && s.arguments.isNotEmpty()) || s.isPrimitiveArray() -> {
|
||||
|
||||
fun replaceComponentTypeWithAny(t: IrSimpleType, dimensions: Int): IrSimpleType =
|
||||
fun replaceComponentTypeWithAny(t: IrSimpleType, dimensions: Int): IrType =
|
||||
if (dimensions == 0)
|
||||
pluginContext.irBuiltIns.anyType as IrSimpleType
|
||||
pluginContext.irBuiltIns.anyType
|
||||
else
|
||||
t.toBuilder().also { it.arguments = (it.arguments[0] as IrTypeProjection)
|
||||
.let { oldArg ->
|
||||
|
||||
Reference in New Issue
Block a user