We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fc84d commit 159ee99Copy full SHA for 159ee99
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -2394,7 +2394,11 @@ open class KotlinFileExtractor(
2394
if (e.typeArgumentsCount > 0) {
2395
logger.warnElement("Unexpected type arguments (${e.typeArgumentsCount}) for anonymous class constructor call", e)
2396
}
2397
- val c = eType.classifier.owner as IrClass
+ val c = eType.classifier.owner
2398
+ if (c !is IrClass) {
2399
+ logger.errorElement("Anonymous constructor call type not a class (${c.javaClass})", e)
2400
+ return
2401
+ }
2402
useAnonymousClass(c)
2403
} else {
2404
useType(eType)
0 commit comments