New test.
[mono.git] / mcs / tests / test-anon-11.cs
1 //
2 // Parameter and return value compilation tests for anonymous methods
3 //
4 delegate void D (int x);
5 delegate void E (out int x);
6
7 delegate void F (params int[] x);
8
9 class X {
10         static int Main ()
11         {
12                 // This should create an AnonymousMethod with the implicit argument
13                 D d1 = delegate {};
14                 D d2 = delegate (int a) {};
15
16                 F f1 = delegate {};
17                 F f2 = delegate (int[] a) {};
18
19                 return 0;
20         }
21 }