Skip to content

Commit c66b035

Browse files
Fix some methods showing as virtual incorrectly (#21)
Fixes #20
1 parent 949ee8b commit c66b035

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ClassExplorer/SignatureWriter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@ public SignatureWriter Modifiers(MethodBase method)
649649

650650
if ((method.Attributes & MethodAttributes.NewSlot) is not 0)
651651
{
652+
if (method.IsFinal)
653+
{
654+
return this;
655+
}
656+
652657
return Keyword("virtual").Space();
653658
}
654659

0 commit comments

Comments
 (0)