diff --git a/go/ql/lib/semmle/go/Stmt.qll b/go/ql/lib/semmle/go/Stmt.qll index aa6fe7c24de..8deadd55512 100644 --- a/go/ql/lib/semmle/go/Stmt.qll +++ b/go/ql/lib/semmle/go/Stmt.qll @@ -761,7 +761,7 @@ class CaseClause extends @caseclause, Stmt, ScopeNode { * * Note that the default clause does not have any expressions. */ - Expr getAnExpr() { result = this.getAChildExpr() } + Expr getAnExpr() { result = this.getExpr(_) } /** * Gets the number of expressions of this `case` clause.