The logic was wrong here, it worked because of a codepath not covered, fixes #57895
[mono.git] / mcs / mcs / enum.cs
index f72e25446f05a219808356c71d50c7bc0396cdcf..32d0bf91c9ec3c577b81b3f85368533886e85ea1 100755 (executable)
@@ -91,6 +91,11 @@ namespace Mono.CSharp {
                        return AdditionResult.Success;
                }
 
+               public override void ApplyAttributeBuilder (object builder, Attribute a, CustomAttributeBuilder cb)
+               {
+                       ((TypeBuilder) builder).SetCustomAttribute (cb);
+               }
+
                //
                // This is used by corlib compilation: we map from our
                // type to a type that is consumable by the DefineField