mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-26 05:38:14 +00:00
Allow @(deprecated=<string>) on types
This commit is contained in:
@@ -518,6 +518,8 @@ gb_internal void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr,
|
||||
AttributeContext ac = {};
|
||||
check_decl_attributes(ctx, decl->attributes, type_decl_attribute, &ac);
|
||||
|
||||
e->deprecated_message = ac.deprecated_message;
|
||||
|
||||
if (e->kind == Entity_TypeName && ac.objc_class != "") {
|
||||
|
||||
e->TypeName.objc_class_name = ac.objc_class;
|
||||
|
||||
Reference in New Issue
Block a user