Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0ae128 commit 4cd7bf2Copy full SHA for 4cd7bf2
1 file changed
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -1416,12 +1416,11 @@ open class KotlinUsesExtractor(
1416
for(t in subbedSupertypes) {
1417
when(t) {
1418
is IrSimpleType -> {
1419
- when (t.classifier.owner) {
+ val owner = t.classifier.owner
1420
+ when (owner) {
1421
is IrClass -> {
- val classifier: IrClassifierSymbol = t.classifier
1422
- val tcls: IrClass = classifier.owner as IrClass
1423
val typeArgs = if (t.arguments.isNotEmpty() && mode is ExtractSupertypesMode.Raw) null else t.arguments
1424
- val l = useClassInstance(tcls, typeArgs, inReceiverContext).typeResult.id
+ val l = useClassInstance(owner, typeArgs, inReceiverContext).typeResult.id
1425
tw.writeExtendsReftype(id, l)
1426
}
1427
else -> {
0 commit comments