diff options
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index b6e0a7f58..5243642e6 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1835,6 +1835,8 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } } } + + add_entity_use(ctx, nullptr, e); } else { // NOTE(bill): skip the rest to remove extra errors error(token, "'using' can only be applied to variables of type struct or raw_union"); |