Updated.
[mono.git] / mcs / errors / cs0122-7.cs
1 // error CS0122: 'BB.AnEvent' is inaccessible due to its protection level
2
3 using System;
4
5 class X 
6 {
7        static void Main ()
8        {
9                BB b = new BB ();
10                b.AnEvent += DoIt;
11        }
12        
13        public static void DoIt (object sender, EventArgs args) {}
14 }
15
16 public class BB
17 {
18        event EventHandler AnEvent;
19 }
20