Explorar el Código

Mixin fix for closed module

Brian Fiete hace 5 años
padre
commit
65a28a97bb
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      IDEHelper/Compiler/BfModule.cpp

+ 6 - 1
IDEHelper/Compiler/BfModule.cpp

@@ -12120,7 +12120,12 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
 
 			if (!methodInstance->mMethodDef->mIsAbstract)
 			{
-				AddMethodToWorkList(methodInstance);				
+				if ((methodInstance->mMethodDef->mMethodType == BfMethodType_Mixin) && (!methodInstance->mDeclModule->mIsModuleMutable))
+				{
+					// Wait until unreified
+				}
+				else 
+					AddMethodToWorkList(methodInstance);				
 			}
 			else
 			{