mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Improved virtual overrides in extensions
This commit is contained in:
parent
8a84647bcd
commit
e1d7939081
11 changed files with 116 additions and 11 deletions
|
@ -5878,6 +5878,23 @@ void BfCompiler::PopulateReified()
|
|||
|
||||
checkType = checkType->mBaseType;
|
||||
}
|
||||
|
||||
for (auto& reifyDep : typeInst->mReifyMethodDependencies)
|
||||
{
|
||||
if ((reifyDep.mDepMethod.mTypeInstance == NULL) ||
|
||||
(reifyDep.mDepMethod.mTypeInstance->IsIncomplete()))
|
||||
continue;
|
||||
|
||||
BfMethodInstance* depMethod = reifyDep.mDepMethod;
|
||||
if (depMethod == NULL)
|
||||
continue;
|
||||
|
||||
if ((depMethod->mIsReified) && (depMethod->mMethodInstanceGroup->IsImplemented()))
|
||||
{
|
||||
auto methodDef = typeInst->mTypeDef->mMethods[reifyDep.mMethodIdx];
|
||||
typeInst->mModule->GetMethodInstance(typeInst, methodDef, BfTypeVector());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue