From 9dabbc2c95b6b413037a8a8b4bc1c7a7b0f053e4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 31 Dec 2018 16:43:58 +0000 Subject: Add entity use when `using` is applied to a variable declaration --- src/check_stmt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_stmt.cpp') 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"); -- cgit v1.2.3