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:
parent
bff1d657cc
commit
6cb2df65a6
12 changed files with 322 additions and 68 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue