mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Kotlin: Remove a cast from getDeclaringTypeArguments
This commit is contained in:
@@ -1342,7 +1342,7 @@ open class KotlinFileExtractor(
|
||||
} else {
|
||||
var subbedType: IrSimpleType = receiverType
|
||||
ancestorTypes.forEach {
|
||||
val thisClass = subbedType.classifier.owner as IrClass
|
||||
val thisClass = subbedType.classifier.owner
|
||||
if (thisClass !is IrClass) {
|
||||
logger.errorElement("Found ancestor with unexpected type ${thisClass.javaClass}", callTarget)
|
||||
return listOf()
|
||||
|
||||
Reference in New Issue
Block a user