diff --git a/ql/src/codeql_ql/ast/Ast.qll b/ql/src/codeql_ql/ast/Ast.qll index 0d3ee7d1714..6be2f74e3e9 100644 --- a/ql/src/codeql_ql/ast/Ast.qll +++ b/ql/src/codeql_ql/ast/Ast.qll @@ -665,7 +665,7 @@ class Class extends TClass, TypeDeclaration, ModuleDeclaration { /** * Gets a super-type referenced in the `extends` part of the class declaration. */ - TypeExpr getASuperType() { toGenerated(result) in [cls.getExtends(_), cls.getInstanceof(_)] } + TypeExpr getASuperType() { toGenerated(result) = cls.getExtends(_) } /** Gets the type that this class is defined to be an alias of. */ TypeExpr getAliasType() {