mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
Kotlin: Remove cast in extractFunctionReference
This commit is contained in:
@@ -3829,7 +3829,11 @@ open class KotlinFileExtractor(
|
||||
return
|
||||
}
|
||||
|
||||
val parameterTypes = type.arguments.map { it as IrType }
|
||||
val parameterTypes = type.arguments.map { it as? IrType }.requireNoNullsOrNull()
|
||||
if (parameterTypes == null) {
|
||||
logger.errorElement("Unexpected: Non-IrType parameter.", functionReferenceExpr)
|
||||
return
|
||||
}
|
||||
|
||||
val dispatchReceiverIdx: Int
|
||||
val expressionTypeArguments: List<IrType>
|
||||
|
||||
Reference in New Issue
Block a user