Skip to content
Permalink
Browse files

Merge pull request #1792 from Chicken-Bones/sealednobody

Fix sealed modifier on interface methods with no body
  • Loading branch information...
dgrunwald committed Nov 6, 2019
2 parents eaecedd + d9a1dc9 commit 2bb98797e1f91d3b5ef136502fc6216f679d3a66
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 2bb9879

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