From 3a87b926b3212ee8d6b533da8f8cc307a9f756ef Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 14 Jan 2022 07:08:09 -0500 Subject: [PATCH] Update TypeCode, fixed TypeOf value --- BeefLibs/corlib/src/Reflection/AttributeInfo.bf | 2 +- BeefLibs/corlib/src/Type.bf | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Reflection/AttributeInfo.bf b/BeefLibs/corlib/src/Reflection/AttributeInfo.bf index 0489904a..5bb5c8ab 100644 --- a/BeefLibs/corlib/src/Reflection/AttributeInfo.bf +++ b/BeefLibs/corlib/src/Reflection/AttributeInfo.bf @@ -92,7 +92,7 @@ namespace System.Reflection .Double: let attrData = Decode!(data); args[argIdx] = scope:AttrBlock box attrData; - case (TypeCode)51: //BfConstType_TypeOf + case (TypeCode)typeof(TypeCode).MaxValue + 8: //BfConstType_TypeOf let argTypeId = Decode!(data); args[argIdx] = Type.[Friend]GetType((.)argTypeId); case (TypeCode)255: diff --git a/BeefLibs/corlib/src/Type.bf b/BeefLibs/corlib/src/Type.bf index 14ef5228..11aeb50c 100644 --- a/BeefLibs/corlib/src/Type.bf +++ b/BeefLibs/corlib/src/Type.bf @@ -686,7 +686,16 @@ namespace System Struct, Enum, TypeAlias, - Extension + Extension, + FloatX2, + FloatX3, + FloatX4, + DoubleX2, + DoubleX3, + DoubleX4, + Int64X2, + Int64X3, + Int64X4, } }