diff options
author | Thays Grazia <thaystg@gmail.com> | 2019-03-20 03:44:50 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-03-20 10:36:21 +0300 |
commit | b811e645a355b409df76f2ddb72a083504e8154c (patch) | |
tree | dd7b4354493d9da56e8ef834626f2451c01bfba1 /mcs/ilasm | |
parent | 8aaf420efe10d5e4932819544d811402564b6642 (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.cs | 5 |
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); |