diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Language.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Language.kt index 695b7332bc..5d1fdb6849 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Language.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Language.kt @@ -216,7 +216,8 @@ abstract class Language> : Node() { val superTypes = root.ancestors.map { it.type } // Check, if super type (or its root) is in the list - return superType.root in superTypes + return superType.root in superTypes || + superType is UnknownType // TODO remove / move to python } }