mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Reflection fixes
This commit is contained in:
parent
6cd66a2182
commit
c0b8d151de
2 changed files with 6 additions and 2 deletions
|
@ -5756,6 +5756,7 @@ BfType* BfModule::ResolveGenericType(BfType* unspecializedType, BfTypeVector* ty
|
|||
return NULL;
|
||||
if (elementType->IsVar())
|
||||
return elementType;
|
||||
elementType = FixIntUnknown(elementType);
|
||||
return CreateRefType(elementType, refType->mRefKind);
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ namespace Tests
|
|||
|
||||
var res = methodInfo.Invoke(.(), fieldAV, fieldStrV).Value;
|
||||
Test.Assert(ca.mA == 1123);
|
||||
Test.Assert(ca.mB == "B");
|
||||
Test.Assert(ca.mStr == "B");
|
||||
var sa = res.Get<StructA>();
|
||||
Test.Assert(sa.mA == 12);
|
||||
Test.Assert(sa.mB == 34);
|
||||
|
@ -295,9 +295,12 @@ namespace Tests
|
|||
Test.Assert(result.Get<int>() == 2123);
|
||||
result.Dispose();
|
||||
case 4:
|
||||
Test.Assert(methodInfo.Name == "__BfCtor");
|
||||
Test.Assert(methodInfo.Name == "__BfStaticCtor");
|
||||
Test.Assert(methodInfo.IsConstructor);
|
||||
case 5:
|
||||
Test.Assert(methodInfo.Name == "__BfCtor");
|
||||
Test.Assert(methodInfo.IsConstructor);
|
||||
case 6:
|
||||
Test.FatalError(); // Shouldn't have any more
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue