1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Adding Obsolete/Error/Warn attributes, devirt fixes for struct ptr

This commit is contained in:
Brian Fiete 2019-10-09 16:11:49 -07:00
parent 1aded38e36
commit ad2542eba6
4 changed files with 261 additions and 22 deletions

View file

@ -332,6 +332,38 @@ namespace System
{
}
[AttributeUsage(.Method | .Constructor)]
public struct ObsoleteAttribute : Attribute
{
public this(bool isError)
{
}
public this(String error, bool isError)
{
}
}
[AttributeUsage(.Method | .Constructor)]
public struct ErrorAttribute : Attribute
{
public this(String error)
{
}
}
[AttributeUsage(.Method | .Constructor)]
public struct WarnAttribute : Attribute
{
public this(String error)
{
}
}
[AttributeUsage(.Method | .Class | .Struct)]
public struct NoDiscardAttribute : Attribute
{