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:
parent
1aded38e36
commit
ad2542eba6
4 changed files with 261 additions and 22 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue