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

Fixed mangle collision with mut/non-mut

This commit is contained in:
Brian Fiete 2020-07-10 14:45:53 -07:00
parent 6caac94c84
commit 1eaaf9510d

View file

@ -1181,6 +1181,8 @@ bool BfMSMangler::FindOrCreateNameSub(MangleContext& mangleContext, StringImpl&
name += "_";
name += "this";
typeVec.push_back(delegateInfo->mFunctionThisType);
if ((delegateInfo->mFunctionThisType->IsValueType()) && (methodDef->mIsMutating))
name += "_mut";
}
for (int paramIdx = 0; paramIdx < (int)methodDef->mParams.size(); paramIdx++)