Skip to content

Commit

Permalink
Allow for multiple MpCompatSyncWorkerAttribute on same method (#486)
Browse files Browse the repository at this point in the history
There isn't anything preventing us from doing that normally, and we do that in some situations - especially for empty (and `shouldConstruct` only) sync workers.
  • Loading branch information
SokyranTheDragon authored Oct 22, 2024
1 parent 14fb79a commit 24fb4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MpCompatAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public MpCompatSyncFieldAttribute(Type type, string instancePath, string fieldNa
=> this.instancePath = instancePath;
}

[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[MeansImplicitUse(ImplicitUseTargetFlags.WithMembers)]
public class MpCompatSyncWorkerAttribute : Attribute
{
Expand Down

0 comments on commit 24fb4c8

Please sign in to comment.