Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2001-11-13 16:47:18 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2001-11-13 16:47:18 +0300
commit97fd8804ab84f45185f8e08c8c22f380a0b66cbe (patch)
tree67422b8a77b38d2d50e9f4ab6d6c0d024587f451 /mcs/errors/cs0592.cs
parent26461ffeae7eccb9ba7bab43e543537faaadff4d (diff)
Add. We now properly check attribute placing.
svn path=/trunk/mcs/; revision=1342
Diffstat (limited to 'mcs/errors/cs0592.cs')
-rw-r--r--mcs/errors/cs0592.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/errors/cs0592.cs b/mcs/errors/cs0592.cs
new file mode 100644
index 00000000000..02dd459cdbe
--- /dev/null
+++ b/mcs/errors/cs0592.cs
@@ -0,0 +1,29 @@
+// cs0592.cs : Attribute 'Simple' is not valid on this declaration type. It is valid on 'constructor' declarations only.
+// Line : 22
+
+using System;
+
+[AttributeUsage (AttributeTargets.Constructor, AllowMultiple = true)]
+ public class SimpleAttribute : Attribute {
+
+ string name = null;
+
+ public string MyNamedArg;
+
+ public SimpleAttribute (string name)
+ {
+ this.name = name;
+ }
+
+
+ }
+
+[Simple ("Dummy", MyNamedArg = "Dude!")]
+ public class Blah {
+
+ public static void Main ()
+ {
+ }
+ }
+
+