From b438f2166d0d3af02948919e5e6e8c9fea810f5d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 1 Mar 2022 12:05:10 -0800 Subject: [PATCH] Fixed extension method override error check --- IDEHelper/Compiler/BfModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 9b083943..c14c8082 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -22280,7 +22280,7 @@ void BfModule::SetupIRFunction(BfMethodInstance* methodInstance, StringImpl& man auto checkMethodInstance = mCurTypeInstance->mMethodInstanceGroups[checkMethod->mIdx].mDefault; if (checkMethodInstance == NULL) continue; - if (checkMethodInstance->mIRFunction == prevFunc) + if ((checkMethodInstance->mIRFunction == prevFunc) && (checkMethodInstance->mMethodDef->mMethodDeclaration != NULL)) { BfAstNode* refNode = methodDef->GetRefNode(); if (auto propertyMethodDeclaration = methodDef->GetPropertyMethodDeclaration())