зеркало из https://github.com/mono/ikvm-fork.git
Always emit an explicit method override if we've mangled the name/sig, because we can't predict whether it will be needed or not (without keeping track of the mangling in the base classes) and the cost is minimal since this doesn't happen all that often.
This commit is contained in:
Родитель
2e6feb0089
Коммит
9991b38140
|
@ -6177,7 +6177,7 @@ namespace IKVM.Internal
|
|||
setNameSig = true;
|
||||
}
|
||||
}
|
||||
bool needMethodImpl = baseMce != null && (explicitOverride || baseMce.RealName != name) && !needFinalize;
|
||||
bool needMethodImpl = baseMce != null && (setNameSig || explicitOverride || baseMce.RealName != name) && !needFinalize;
|
||||
if(unloadableOverrideStub || needMethodImpl)
|
||||
{
|
||||
attribs |= MethodAttributes.NewSlot;
|
||||
|
|
Загрузка…
Ссылка в новой задаче