We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7eb7b commit a35c7abCopy full SHA for a35c7ab
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -3829,7 +3829,11 @@ open class KotlinFileExtractor(
3829
return
3830
}
3831
3832
- val parameterTypes = type.arguments.map { it as IrType }
+ val parameterTypes = type.arguments.map { it as? IrType }.requireNoNullsOrNull()
3833
+ if (parameterTypes == null) {
3834
+ logger.errorElement("Unexpected: Non-IrType parameter.", functionReferenceExpr)
3835
+ return
3836
+ }
3837
3838
val dispatchReceiverIdx: Int
3839
val expressionTypeArguments: List<IrType>
0 commit comments