Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/ilasm
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2019-03-20 03:44:50 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-20 10:36:21 +0300
commitb811e645a355b409df76f2ddb72a083504e8154c (patch)
treedd7b4354493d9da56e8ef834626f2451c01bfba1 /mcs/ilasm
parent8aaf420efe10d5e4932819544d811402564b6642 (diff)
When it is a sealed method in Interface it's not Static nor Virtual and shouldn't add virtual.
Fixes #13508
Diffstat (limited to 'mcs/ilasm')
-rw-r--r--mcs/ilasm/codegen/TypeDef.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/mcs/ilasm/codegen/TypeDef.cs b/mcs/ilasm/codegen/TypeDef.cs
index e6d9dc2cdb0..d10bcc311f7 100644
--- a/mcs/ilasm/codegen/TypeDef.cs
+++ b/mcs/ilasm/codegen/TypeDef.cs
@@ -207,11 +207,6 @@ namespace Mono.ILASM {
public void AddMethodDef (MethodDef methoddef)
{
- if (IsInterface && !methoddef.IsStatic && !methoddef.IsVirtual) {
- Report.Warning (methoddef.StartLocation, "Non-virtual instance method in interface, set to such");
- methoddef.Attributes |= PEAPI.MethAttr.Virtual;
- }
-
if (method_table [methoddef.Signature] != null)
Report.Error (methoddef.StartLocation, "Duplicate method declaration: " + methoddef.Signature);