Sfoglia il codice sorgente

Fixed onDemand count with generic interface that declares a method impl

Brian Fiete 4 anni fa
parent
commit
95fe97496c
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      IDEHelper/Compiler/BfModuleTypeUtils.cpp

+ 5 - 1
IDEHelper/Compiler/BfModuleTypeUtils.cpp

@@ -5526,7 +5526,11 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
 								BfMethodInstance* newMethodInstance = methodInst.mMethodInstance;
 								BF_ASSERT(newMethodInstance->mIsForeignMethodDef);					
 								if (newMethodInstance->mMethodInstanceGroup->mOnDemandKind == BfMethodOnDemandKind_Decl_AwaitingReference)
-									mOnDemandMethodCount++;								
+								{
+									if (!mIsScratchModule)
+										mOnDemandMethodCount++;
+								}		
+	
 								continue;
 							}
 						}