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

Improvements to interfaces: extensions, better generics, statics

This commit is contained in:
Brian Fiete 2020-05-27 09:46:09 -07:00
parent bff1d657cc
commit 6cb2df65a6
12 changed files with 322 additions and 68 deletions

View file

@ -192,7 +192,7 @@ BfMethodInstance* BfNonGenericMethodRef::operator->() const
}
BfNonGenericMethodRef& BfNonGenericMethodRef::operator=(BfMethodInstance* methodInstance)
{
{
if (methodInstance == NULL)
{
mTypeInstance = NULL;
@ -202,7 +202,8 @@ BfNonGenericMethodRef& BfNonGenericMethodRef::operator=(BfMethodInstance* method
{
mTypeInstance = methodInstance->mMethodInstanceGroup->mOwner;
mMethodNum = methodInstance->mMethodInstanceGroup->mMethodIdx;
BF_ASSERT(methodInstance->GetNumGenericArguments() == 0);
BF_ASSERT((methodInstance->GetNumGenericArguments() == 0) ||
((methodInstance->mIsUnspecialized) && (!methodInstance->mIsUnspecializedVariation)));
mSignatureHash = (int)mTypeInstance->mTypeDef->mSignatureHash;
}
return *this;