diff --git a/BeefLibs/corlib/src/Attribute.bf b/BeefLibs/corlib/src/Attribute.bf index f626b041..34c8fb78 100644 --- a/BeefLibs/corlib/src/Attribute.bf +++ b/BeefLibs/corlib/src/Attribute.bf @@ -102,7 +102,7 @@ namespace System } } - [AttributeUsage(.Method | .Constructor | .Invocation | .Property)] + [AttributeUsage(.Method | .Constructor | .Invocation)] public struct InlineAttribute : Attribute { diff --git a/IDE/mintest/minlib/src/System/Attribute.bf b/IDE/mintest/minlib/src/System/Attribute.bf index 3574932d..1d456668 100644 --- a/IDE/mintest/minlib/src/System/Attribute.bf +++ b/IDE/mintest/minlib/src/System/Attribute.bf @@ -102,7 +102,7 @@ namespace System } } - [AttributeUsage(.Method | .Constructor | .Invocation | .Property)] + [AttributeUsage(.Method | .Constructor | .Invocation)] public struct InlineAttribute : Attribute { diff --git a/IDE/mintest/minlib/src/System/Nullable.bf b/IDE/mintest/minlib/src/System/Nullable.bf index 2d14726d..ba343a42 100644 --- a/IDE/mintest/minlib/src/System/Nullable.bf +++ b/IDE/mintest/minlib/src/System/Nullable.bf @@ -15,15 +15,15 @@ namespace System mValue = value; } - [Inline] public bool HasValue { + [Inline] get { return mHasValue; } } - [Inline] public T Value { + [Inline] get { if (!mHasValue) @@ -35,9 +35,9 @@ namespace System } } - [Inline] public ref T ValueRef { + [Inline] get mut { if (!mHasValue) diff --git a/IDE/mintest/minlib/src/System/Object.bf b/IDE/mintest/minlib/src/System/Object.bf index 1a629c4e..0f5ec13b 100644 --- a/IDE/mintest/minlib/src/System/Object.bf +++ b/IDE/mintest/minlib/src/System/Object.bf @@ -125,14 +125,6 @@ namespace System //PrintF("Object.GCMarkMembers %08X\n", this); } - public static Object ManualInit(void* ptr, TypeInstance typeInst) - { - void* addr = ptr; - let obj = *((Object*)&addr); - *(int*)&obj.mClassVData = *(int*)&typeInst.mTypeClassVData; - return obj; - } - static void ToString(Object obj, String strBuffer) { if (obj == null) diff --git a/IDE/mintest/minlib/src/System/Span.bf b/IDE/mintest/minlib/src/System/Span.bf index 5494810b..e3994c32 100644 --- a/IDE/mintest/minlib/src/System/Span.bf +++ b/IDE/mintest/minlib/src/System/Span.bf @@ -51,27 +51,27 @@ namespace System return Span(array); } - [Inline] public int Length { + [Inline] get { return mLength; } } - [Inline] public T* Ptr { + [Inline] get { return mPtr; } } - [Inline] public T* EndPtr { + [Inline] get { return mPtr + mLength; @@ -281,9 +281,9 @@ namespace System } - [Inline] public T* Ptr { + [Inline] get { return mPtr;