diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-02 20:58:36 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-02 20:58:36 +0300 |
commit | 9cc2aa668807c810a2576c288d00c19c7e0fddac (patch) | |
tree | a06f4fdfe45bc7cbb17c56c3b44531ade2d92848 /mcs/errors/cs0069.cs | |
parent | 8e0ac9abb492f17adfd46b183cf59707a8ff7d41 (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.cs | 18 |
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 { } + } +} + |