diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 54ec74f4..38b53de7 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/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; } }