[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-566.cs
blob503d8da9cbf3ac93fd3ff1f32a4b40887d90cb19
1 class A<T>
3 public class Context<U>
5 public delegate void D (T instance);
6 public delegate void D2<V> ();
9 public class Constructor
11 public class Nested
13 public static void Test<U> (Context<U>.D d)
15 var c = new Constructor ();
16 c.Before (d);
19 public static void Test<U, V> (Context<U>.D2<V> d)
21 var c = new Constructor ();
22 c.Before (d);
26 public void Before<U> (Context<U>.D d)
30 public void Before<U, V> (Context<U>.D2<V> d)
36 class C
38 public static int Main ()
40 A<int>.Context<bool>.D d = null;
41 A<int>.Constructor.Nested.Test (d);
43 A<int>.Context<bool>.D2<string> d2 = null;
44 A<int>.Constructor.Nested.Test (d2);
46 return 0;