Skip to content

Commit f0530c7

Browse files
committed
final trait method proper CIL
1 parent 60c5f71 commit f0530c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Peachpie.CodeAnalysis/Symbols/Source/SourceMethodSymbol.cs

+4
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ public SourceTraitMethodSymbol(SourceTraitTypeSymbol type, MethodDecl syntax)
322322
// abstract trait method must have an empty implementation
323323
public override bool IsAbstract => false;
324324

325+
public override bool IsVirtual => false;
326+
public override bool IsOverride => false;
327+
internal override bool IsMetadataFinal => false; // final trait method must not be marked sealed in CIL
328+
325329
// abstract trait method must have an empty implementation
326330
internal override IList<Statement> Statements => base.IsAbstract ? Array.Empty<Statement>() : base.Statements;
327331
}

0 commit comments

Comments
 (0)