Skip to content

Commit

Permalink
fixed special name logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuinox committed Oct 27, 2024
1 parent a2a35db commit 2ff6b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ private MethodDefinitionHandle EncodeProcedure(IProcedure procedure, string? spe
// Determine attributes
var attributes = MethodAttributes.HideBySig | visibility;
if (procedure.Symbol.IsStatic) attributes |= MethodAttributes.Static;
if (procedure.Symbol.IsSpecialName) attributes |= MethodAttributes.SpecialName | MethodAttributes.RTSpecialName;
if (specialName != null) attributes |= MethodAttributes.SpecialName | MethodAttributes.RTSpecialName;

// Parameters
var parameterList = this.NextParameterHandle;
Expand Down

0 comments on commit 2ff6b99

Please sign in to comment.