1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 07:14:09 +02:00

Added Obsolete support for moved collections

This commit is contained in:
Brian Fiete 2020-04-29 09:53:48 -07:00
parent dbd9b32e3f
commit 842a6a8898
16 changed files with 232 additions and 109 deletions

View file

@ -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
@ -350,7 +351,7 @@ namespace System
{
}
[AttributeUsage(.Method | .Constructor)]
[AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct ObsoleteAttribute : Attribute
{
public this(bool isError)
@ -370,7 +371,7 @@ namespace System
}
[AttributeUsage(.Method | .Constructor)]
[AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct ErrorAttribute : Attribute
{
public this(String error)
@ -379,7 +380,7 @@ namespace System
}
}
[AttributeUsage(.Method | .Constructor)]
[AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct WarnAttribute : Attribute
{
public this(String error)

View file

@ -654,3 +654,9 @@ namespace System.Collections
}
}
}
namespace System.Collections.Generic
{
[Obsolete("The System.Collections.Generic containers have been moved into System.Collections", false)]
typealias List<T> = System.Collections.List<T>;
}