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:
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-02 20:58:36 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-02 20:58:36 +0300
commit9cc2aa668807c810a2576c288d00c19c7e0fddac (patch)
treea06f4fdfe45bc7cbb17c56c3b44531ade2d92848 /mcs/errors/cs0069.cs
parent8e0ac9abb492f17adfd46b183cf59707a8ff7d41 (diff)
Test for C# Compiler Error CS0069. Interface events can't have add or remove accessors.
svn path=/trunk/mcs/; revision=9356
Diffstat (limited to 'mcs/errors/cs0069.cs')
-rw-r--r--mcs/errors/cs0069.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0069.cs b/mcs/errors/cs0069.cs
new file mode 100644
index 00000000000..dfbe7fc3094
--- /dev/null
+++ b/mcs/errors/cs0069.cs
@@ -0,0 +1,18 @@
+// cs0069.cs: Event cannot have add or remove accessors in an interface.
+// Line: 13
+
+using System;
+
+class ErrorCS0069 {
+ public delegate void FooHandler ();
+ public static void Main () {
+ }
+}
+
+interface IBar {
+ event OnFoo {
+ add { }
+ remove { }
+ }
+}
+