mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 20:18:01 +02:00
Merge pull request #1012 from EinBurgbauer/comptime-genericarg-fix
comptime get generic arg fix
This commit is contained in:
commit
54e42e8e31
1 changed files with 2 additions and 8 deletions
|
@ -683,13 +683,7 @@ namespace System
|
|||
|
||||
namespace System.Reflection
|
||||
{
|
||||
public struct TypeId : int32
|
||||
{
|
||||
public Type ToType()
|
||||
{
|
||||
return Type.[Friend]sTypes[(int32)this];
|
||||
}
|
||||
}
|
||||
public struct TypeId : int32 {}
|
||||
|
||||
[Ordered, AlwaysInclude(AssumeInstantiated=true)]
|
||||
public class TypeInstance : Type
|
||||
|
@ -1137,7 +1131,7 @@ namespace System.Reflection
|
|||
|
||||
public Type GetGenericArg(int argIdx)
|
||||
{
|
||||
return mResolvedTypeRefs[argIdx].ToType();
|
||||
return Type.GetType(mResolvedTypeRefs[argIdx]);
|
||||
}
|
||||
|
||||
public override void GetFullName(String strBuffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue