Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-64.cs
1 using System;
2
3 class Source {
4         public event EventHandler ChildSourceAdded;
5         public event EventHandler ChildSourceRemoved;
6
7         Source FindSource (Source x){ return null; }
8
9         private void AddSource(Source source, int position, object parent)
10         {
11             if(!FindSource(source).Equals(source)) {
12                 return;
13             }
14
15             object iter = null;
16
17             source.ChildSourceAdded += delegate(object t, EventArgs e) {
18                 AddSource((Source)(object)e, position, iter);
19             };
20
21             source.ChildSourceRemoved += delegate(object t, EventArgs e) {
22             };
23
24         }
25         public static void Main () {}
26
27 }