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.
2 parents 824ac9e + a35c7ab commit 38ba516Copy full SHA for 38ba516
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -3845,7 +3845,11 @@ open class KotlinFileExtractor(
3845
return
3846
}
3847
3848
- val parameterTypes = type.arguments.map { it as IrType }
+ val parameterTypes = type.arguments.map { it as? IrType }.requireNoNullsOrNull()
3849
+ if (parameterTypes == null) {
3850
+ logger.errorElement("Unexpected: Non-IrType parameter.", functionReferenceExpr)
3851
+ return
3852
+ }
3853
3854
val dispatchReceiverIdx: Int
3855
val expressionTypeArguments: List<IrType>
0 commit comments