From f8175e84a12f55c215e0c9da776abbc62b4a0b3d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 18 Sep 2020 17:36:07 -0700 Subject: [PATCH] Fixed MethodToString issue with missing generic interface method --- IDEHelper/Compiler/BfModule.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index b4c4a333..d11c9df2 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -9781,6 +9781,9 @@ String BfModule::MethodToString(BfMethodInstance* methodInst, BfMethodNameFlags String methodName; if ((methodNameFlags & BfMethodNameFlag_OmitTypeName) == 0) { + // Don't use the 'mCurMethodInstance' owner for the type instance if there's one already set + SetAndRestoreValue prevMethodInstance(mCurMethodInstance, NULL); + methodName = TypeToString(type, typeNameFlags); if (methodName == "$") methodName = "";