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/cs0657-16.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/cs0657-16.cs')
-rw-r--r--mcs/errors/cs0657-16.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0657-16.cs b/mcs/errors/cs0657-16.cs
new file mode 100644
index 00000000000..2b615541167
--- /dev/null
+++ b/mcs/errors/cs0657-16.cs
@@ -0,0 +1,19 @@
+// cs0657.cs : 'event' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are 'method, param, return'
+// Line: 14
+
+using System;
+
+[AttributeUsage(AttributeTargets.All)]
+public class TestAttribute: Attribute
+{
+}
+
+class C
+{
+ event ResolveEventHandler field {
+ [event: Test]
+ add {}
+ remove {}
+
+ }
+} \ No newline at end of file