mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Strip ref from comptype, rettype
This commit is contained in:
parent
12a3ba937a
commit
8922cc0c0d
2 changed files with 12 additions and 1 deletions
|
@ -9780,6 +9780,8 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
|
|||
if (invokeMethodInstance != NULL)
|
||||
{
|
||||
resolvedType = invokeMethodInstance->mReturnType;
|
||||
if ((resolvedType != NULL) && (resolvedType->IsRef()))
|
||||
resolvedType = resolvedType->GetUnderlyingType();
|
||||
return ResolveTypeResult(typeRef, resolvedType, populateType, resolveFlags);
|
||||
}
|
||||
}
|
||||
|
@ -9813,6 +9815,8 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
|
|||
{
|
||||
auto methodRefType = (BfMethodRefType*)innerType;
|
||||
resolvedType = methodRefType->mMethodRef->mReturnType;
|
||||
if ((resolvedType != NULL) && (resolvedType->IsRef()))
|
||||
resolvedType = resolvedType->GetUnderlyingType();
|
||||
return ResolveTypeResult(typeRef, resolvedType, populateType, resolveFlags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue