Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / dtest-036.cs
1 using System;
2
3 public class C
4 {
5         event Func<int, int> E;
6         Func<int, int> D;
7
8         public static int Main ()
9         {
10                 var c = new C ();
11                 Func<int, int> v = Foo;
12                 dynamic[] arr = new dynamic [] { v };
13                 
14                 c.E += arr [0];
15                 if (c.E.GetInvocationList ().Length != 1)
16                         return 1;
17
18                 c.D += arr [0];
19                 if (c.D.GetInvocationList ().Length != 1)
20                         return 2;
21                 
22                 return 0;
23         }
24         
25         static int Foo (int ii)
26         {
27                 return 9;
28         }
29 }