From cad0b10aaedc1f98bf02de99efe3efd83ca111fb Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 24 Dec 2020 12:10:01 -0800 Subject: [PATCH] Fixed abstract default interface methods --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index d566f94d..a96a5046 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -4849,7 +4849,8 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance) } } - if ((bestMethodInst->mMethodDef->HasBody()) && (matchedMethod == NULL)) + bool hasDefaultImpl = bestMethodInst->mMethodDef->HasBody() || bestMethodInst->mMethodDef->mIsAbstract; + if ((hasDefaultImpl) && (matchedMethod == NULL)) { auto methodDef = bestMethodInst->mMethodDef; BfGetMethodInstanceFlags flags = BfGetMethodInstanceFlag_ForeignMethodDef;