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-05-18 11:56:35 +0400
committerMarek Safar <marek.safar@gmail.com>2004-05-18 11:56:35 +0400
commitf64e0c0b44a8fb634acf04a3886713a31f3f1b5c (patch)
treee4fd93e8a7ad0f7fa958953787085410f365205b /mcs/errors/cs0592-8.cs
parenta7f134a1a9e5452f7a860448d15b7ccdb7da885c (diff)
2004-05-18 Marek Safar <marek.safar@seznam.cz>
* cs0592-8.cs, * cs0657-{2-17}.cs, * cs1518-3.cs: 18 new error tests. svn path=/trunk/mcs/; revision=27570
Diffstat (limited to 'mcs/errors/cs0592-8.cs')
-rw-r--r--mcs/errors/cs0592-8.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0592-8.cs b/mcs/errors/cs0592-8.cs
new file mode 100644
index 00000000000..8f2689360aa
--- /dev/null
+++ b/mcs/errors/cs0592-8.cs
@@ -0,0 +1,12 @@
+// cs0657.cs : Attribute 'Obsolete' is not valid on this declaration type. It is valid on 'class, struct, enum, constructor, method, property, field, event, interface, delegate' declarations only.
+// Line : 8
+
+using System;
+
+public class C
+{
+ [return: Obsolete]
+ public void Test (int a)
+ {
+ }
+}