Skip to content
Permalink
Browse files

Fix sealed modifier on interface methods with no body

  • Loading branch information...
Chicken-Bones committed Nov 6, 2019
1 parent eaecedd commit d9a1dc96e1cd196ba5569aec343ac37450d6728e
Showing with 1 addition and 1 deletion.
  1. +1 −1 ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs
@@ -1772,7 +1772,7 @@ Modifiers GetMemberModifiers(IMember member)
} else {
var declaringType = member.DeclaringType;
if (declaringType.Kind == TypeKind.Interface) {
if (!member.IsVirtual && !member.IsAbstract && !member.IsOverride && member.Accessibility != Accessibility.Private)
if (!member.IsVirtual && !member.IsAbstract && !member.IsOverride && member.Accessibility != Accessibility.Private && member is IMethod method2 && method2.HasBody)
m |= Modifiers.Sealed;
} else {
if (member.IsAbstract)

0 comments on commit d9a1dc9

Please sign in to comment.
You can’t perform that action at this time.