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.
2 parents f118b39 + 4cd7bf2 commit f5d43b8Copy full SHA for f5d43b8
1 file changed
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -1415,12 +1415,11 @@ open class KotlinUsesExtractor(
1415
for(t in subbedSupertypes) {
1416
when(t) {
1417
is IrSimpleType -> {
1418
- when (t.classifier.owner) {
+ val owner = t.classifier.owner
1419
+ when (owner) {
1420
is IrClass -> {
- val classifier: IrClassifierSymbol = t.classifier
1421
- val tcls: IrClass = classifier.owner as IrClass
1422
val typeArgs = if (t.arguments.isNotEmpty() && mode is ExtractSupertypesMode.Raw) null else t.arguments
1423
- val l = useClassInstance(tcls, typeArgs, inReceiverContext).typeResult.id
+ val l = useClassInstance(owner, typeArgs, inReceiverContext).typeResult.id
1424
tw.writeExtendsReftype(id, l)
1425
}
1426
else -> {
0 commit comments