From 95fe97496c82cceafc046e3ac64aa3c96b0a3a00 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 18 Jan 2021 14:24:18 -0800 Subject: [PATCH] Fixed onDemand count with generic interface that declares a method impl --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } }