mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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 {
|
} else {
|
||||||
// NOTE(bill): skip the rest to remove extra errors
|
// NOTE(bill): skip the rest to remove extra errors
|
||||||
error(token, "'using' can only be applied to variables of type struct or raw_union");
|
error(token, "'using' can only be applied to variables of type struct or raw_union");
|
||||||
|
|||||||
Reference in New Issue
Block a user