Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git] / tests / gtest-anon-39.cs
blobc027ff85298aec36b9364a1387d4794f131aa8be
1 using System;
3 public class Test
5 delegate void D ();
7 public static void Main ()
9 Test t = new Test ();
10 t.Test_1 (t);
11 t.Test_2<int> (1);
14 public void Test_1<T> (T t) where T : Test
16 D d = delegate () {
17 Action<T> d2 = new Action<T> (t.Test_1);
19 d ();
22 public void Test_2<T> (T? t) where T : struct
24 bool b;
25 T t2;
26 D d = delegate () {
27 b = t == null;
28 t2 = (T)t;
29 t2 = t ?? default (T);
32 d ();