mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 22:25:00 -07:00
Add entity use when using is applied to a variable declaration
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user