Kotlin: Remove a cast from getDeclaringTypeArguments

This commit is contained in:
Ian Lynagh
2022-09-06 17:26:15 +01:00
parent 07457b2b5f
commit 4a8960607d

View File

@@ -1342,7 +1342,7 @@ open class KotlinFileExtractor(
} else {
var subbedType: IrSimpleType = receiverType
ancestorTypes.forEach {
val thisClass = subbedType.classifier.owner as IrClass
val thisClass = subbedType.classifier.owner
if (thisClass !is IrClass) {
logger.errorElement("Found ancestor with unexpected type ${thisClass.javaClass}", callTarget)
return listOf()