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:
authorMarek Safar <marek.safar@gmail.com>2004-06-11 13:07:00 +0400
committerMarek Safar <marek.safar@gmail.com>2004-06-11 13:07:00 +0400
commit993516622ed8b22f2228837118c6d0a4e9f2c1cb (patch)
tree948d3a4b61fd50c76735969ed634e91dbdda89c4 /mcs/errors/cs0579-8.cs
parent495f81748f59531f053c7fc6ed0b1d8f90db0b90 (diff)
new test
svn path=/trunk/mcs/; revision=29289
Diffstat (limited to 'mcs/errors/cs0579-8.cs')
-rw-r--r--mcs/errors/cs0579-8.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs0579-8.cs b/mcs/errors/cs0579-8.cs
new file mode 100644
index 00000000000..1a12a54ab65
--- /dev/null
+++ b/mcs/errors/cs0579-8.cs
@@ -0,0 +1,21 @@
+// cs0579.cs : Duplicate 'Obsolete' attribute
+// Line : 17
+
+using System;
+
+[AttributeUsage (AttributeTargets.ReturnValue)]
+public class ReturnAttribute : Attribute
+{
+ public ReturnAttribute ()
+ {
+ }
+}
+
+class MainClass {
+ [Obsolete]
+ [return: Return]
+ [Obsolete]
+ static void Main()
+ {
+ }
+}