Skip to content

Commit 67f8c82

Browse files
authored
Merge pull request github#10325 from igfoo/igfoo/getDeclaringTypeArguments2
Kotlin: Remove a cast from getDeclaringTypeArguments
2 parents b4b52b9 + 4a89606 commit 67f8c82

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
@@ -1338,7 +1338,7 @@ open class KotlinFileExtractor(
13381338
} else {
13391339
var subbedType: IrSimpleType = receiverType
13401340
ancestorTypes.forEach {
1341-
val thisClass = subbedType.classifier.owner as IrClass
1341+
val thisClass = subbedType.classifier.owner
13421342
if (thisClass !is IrClass) {
13431343
logger.errorElement("Found ancestor with unexpected type ${thisClass.javaClass}", callTarget)
13441344
return listOf()

0 commit comments

Comments
 (0)