1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed MethodToString issue with missing generic interface method

This commit is contained in:
Brian Fiete 2020-09-18 17:36:07 -07:00
parent accc95671d
commit f8175e84a1

View file

@ -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<BfMethodInstance*> prevMethodInstance(mCurMethodInstance, NULL);
methodName = TypeToString(type, typeNameFlags);
if (methodName == "$")
methodName = "";