Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-566.cs
1 class A<T>
2 {
3         public class Context<U>
4         {
5                 public delegate void D (T instance);
6                 public delegate void D2<V> ();
7         }
8
9         public class Constructor
10         {
11                 public class Nested
12                 {
13                         public static void Test<U> (Context<U>.D d)
14                         {
15                                 var c = new Constructor ();
16                                 c.Before (d);
17                         }
18
19                         public static void Test<U, V> (Context<U>.D2<V> d)
20                         {
21                                 var c = new Constructor ();
22                                 c.Before (d);
23                         }
24                 }
25
26                 public void Before<U> (Context<U>.D d)
27                 {
28                 }
29
30                 public void Before<U, V> (Context<U>.D2<V> d)
31                 {
32                 }
33         }
34 }
35
36 class C
37 {
38         public static int Main ()
39         {
40                 A<int>.Context<bool>.D d = null;
41                 A<int>.Constructor.Nested.Test (d);
42
43                 A<int>.Context<bool>.D2<string> d2 = null;
44                 A<int>.Constructor.Nested.Test (d2);
45
46                 return 0;
47         }
48 }