Skip to content

Commit 4a89606

Browse files
committed
Kotlin: Remove a cast from getDeclaringTypeArguments
1 parent 07457b2 commit 4a89606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ open class KotlinFileExtractor(
13421342
} else {
13431343
var subbedType: IrSimpleType = receiverType
13441344
ancestorTypes.forEach {
1345-
val thisClass = subbedType.classifier.owner as IrClass
1345+
val thisClass = subbedType.classifier.owner
13461346
if (thisClass !is IrClass) {
13471347
logger.errorElement("Found ancestor with unexpected type ${thisClass.javaClass}", callTarget)
13481348
return listOf()

0 commit comments

Comments
 (0)