1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Fixed module mutability issue

This commit is contained in:
Brian Fiete 2020-05-14 14:55:56 -07:00
parent 71aea8107f
commit 29fbafb91f

View file

@ -4971,6 +4971,8 @@ void BfCompiler::PopulateReified()
if ((implMethod != NULL) && ((!implMethod->mMethodInstanceGroup->IsImplemented()) || (!implMethod->mIsReified))) if ((implMethod != NULL) && ((!implMethod->mMethodInstanceGroup->IsImplemented()) || (!implMethod->mIsReified)))
{ {
didWork = true; didWork = true;
if (!typeInst->mModule->mIsModuleMutable)
typeInst->mModule->StartExtension();
typeInst->mModule->GetMethodInstance(implMethod); typeInst->mModule->GetMethodInstance(implMethod);
} }
} }