Skip to content

Commit 727b892

Browse files
Update checkclass.cpp
1 parent bdac846 commit 727b892

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkclass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ bool CheckClass::isMemberVar(const Scope *scope, const Token *tok) const
22942294
return false;
22952295
if (tok->variable() && (tok->variable()->isArgument() || tok->variable()->isLocal()))
22962296
return false;
2297-
if (tok->type())
2297+
if (tok->function() || tok->type() || tok->enumerator())
22982298
return false;
22992299

23002300
for (const Variable& var : scope->varlist) {

0 commit comments

Comments
 (0)