Add entity use when using is applied to a variable declaration

This commit is contained in:
gingerBill
2018-12-31 16:43:58 +00:00
parent 4167168c63
commit 9dabbc2c95
+2
View File
@@ -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");