diff options
author | Duncan Mak <duncan@mono-cvs.ximian.com> | 2004-12-04 22:32:53 +0300 |
---|---|---|
committer | Duncan Mak <duncan@mono-cvs.ximian.com> | 2004-12-04 22:32:53 +0300 |
commit | a876babccbaf0fe9fb304362f0ba06ccb1afe987 (patch) | |
tree | 4d615635a90bdaa89ad21a28fca3dece068a951f /mcs/errors/cs0122-7.cs | |
parent | 14da67ee145fa7d12a6fb9f49c010a266c029740 (diff) |
2004-12-02 Duncan Mak <duncan@ximian.com>
* cs0122-7.cs:
* cs0122-8.cs: Added test cases for events, from bug #70129.
svn path=/trunk/mcs/; revision=37096
Diffstat (limited to 'mcs/errors/cs0122-7.cs')
-rw-r--r-- | mcs/errors/cs0122-7.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/cs0122-7.cs b/mcs/errors/cs0122-7.cs new file mode 100644 index 00000000000..b6bec3c9ca8 --- /dev/null +++ b/mcs/errors/cs0122-7.cs @@ -0,0 +1,20 @@ +// error CS0122: 'BB.AnEvent' is inaccessible due to its protection level + +using System; + +class X +{ + static void Main () + { + BB b = new BB (); + b.AnEvent += DoIt; + } + + public static void DoIt (object sender, EventArgs args) {} +} + +public class BB +{ + event EventHandler AnEvent; +} + |