diff --git a/BeefLibs/corlib/src/Attribute.bf b/BeefLibs/corlib/src/Attribute.bf index 5114830e..59f56777 100644 --- a/BeefLibs/corlib/src/Attribute.bf +++ b/BeefLibs/corlib/src/Attribute.bf @@ -27,11 +27,12 @@ namespace System MemberAccess = 0x20000, Alloc = 0x40000, Delete = 0x80000, + Alias = 0x100000, All = Assembly | Module | Class | Struct | Enum | Constructor | Method | Property | Field | StaticField | Interface | Parameter | Delegate | Function | ReturnValue | GenericParameter | Invocation | MemberAccess | - Alloc | Delete, + Alloc | Delete | Alias, } public enum ReflectKind @@ -344,7 +345,7 @@ namespace System { } - [AttributeUsage(.Method | .Constructor)] + [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)] public struct ObsoleteAttribute : Attribute { public this(bool isError) @@ -352,7 +353,7 @@ namespace System } - public this(String message, bool isError) + public this(String error, bool isError) { } @@ -364,7 +365,7 @@ namespace System } - [AttributeUsage(.Method | .Constructor)] + [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)] public struct ErrorAttribute : Attribute { public this(String error) @@ -373,7 +374,7 @@ namespace System } } - [AttributeUsage(.Method | .Constructor)] + [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)] public struct WarnAttribute : Attribute { public this(String error)