diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-31 16:43:58 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-31 16:43:58 +0000 |
| commit | 9dabbc2c95b6b413037a8a8b4bc1c7a7b0f053e4 (patch) | |
| tree | a25746a216877c988351373af93f983e7a7c1aef /src/check_stmt.cpp | |
| parent | 4167168c6334b4c603230eb018e4d7866b7e734c (diff) | |
Add entity use when `using` is applied to a variable declaration
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"); |