Skip to content

Commit 0aceeda

Browse files
committed
QL: Make Class.getType() only return ClassType
Previously this would return both the ClassCharType and ClassType
1 parent 907053f commit 0aceeda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/ql/src/codeql_ql/ast/Ast.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ class Class extends TClass, TypeDeclaration, ModuleDeclaration {
972972
}
973973

974974
/** Gets the class type defined by this class declaration. */
975-
Type getType() { result.getDeclaration() = this }
975+
ClassType getType() { result.getDeclaration() = this }
976976

977977
override AstNode getAChild(string pred) {
978978
result = super.getAChild(pred)

0 commit comments

Comments
 (0)