From 45967c1b37774362f9b6fe5ad91eeec94b88808f Mon Sep 17 00:00:00 2001 From: disarray2077 <86157825+disarray2077@users.noreply.github.com> Date: Sat, 24 Oct 2026 15:01:50 -0300 Subject: [PATCH] Allow Error/Warn attributes to be used in static fields --- BeefLibs/corlib/src/Attribute.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Attribute.bf b/BeefLibs/corlib/src/Attribute.bf index 716245134..382c1eff3 100644 --- a/BeefLibs/corlib/src/Attribute.bf +++ b/BeefLibs/corlib/src/Attribute.bf @@ -544,7 +544,7 @@ namespace System } - [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias | .Property | .Field)] + [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias | .Property | .Field | .StaticField)] public struct ErrorAttribute : Attribute { public this(String error) @@ -553,7 +553,7 @@ namespace System } } - [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias | .Property | .Field)] + [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias | .Property | .Field | .StaticField)] public struct WarnAttribute : Attribute { public this(String error)