Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0579-13.cs
1 // CS0579: The attribute `ConditionalAttributeTesting.SomeAttribute' cannot be applied multiple times
2 // Line: 12
3
4 using System;
5 using System.Diagnostics;
6
7 namespace ConditionalAttributeTesting
8 {
9         class MainClass
10         {
11                 [Some ("Test")]
12                 [Some ("Test2")]
13                 public static void Test ()
14                 {
15                 }
16         }
17
18         [AttributeUsage (AttributeTargets.All)]
19         [Conditional ("NOT_DEFINED")]
20         public sealed class SomeAttribute : Attribute
21         {
22                 public SomeAttribute (string someText)
23                 {
24                 }
25         }
26 }