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

Merge pull request #1012 from EinBurgbauer/comptime-genericarg-fix

comptime get generic arg fix
This commit is contained in:
Brian Fiete 2021-05-20 06:35:53 -04:00 committed by GitHub
commit 54e42e8e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -683,13 +683,7 @@ namespace System
namespace System.Reflection namespace System.Reflection
{ {
public struct TypeId : int32 public struct TypeId : int32 {}
{
public Type ToType()
{
return Type.[Friend]sTypes[(int32)this];
}
}
[Ordered, AlwaysInclude(AssumeInstantiated=true)] [Ordered, AlwaysInclude(AssumeInstantiated=true)]
public class TypeInstance : Type public class TypeInstance : Type
@ -1137,7 +1131,7 @@ namespace System.Reflection
public Type GetGenericArg(int argIdx) public Type GetGenericArg(int argIdx)
{ {
return mResolvedTypeRefs[argIdx].ToType(); return Type.GetType(mResolvedTypeRefs[argIdx]);
} }
public override void GetFullName(String strBuffer) public override void GetFullName(String strBuffer)