Merge pull request #5439 from alexrp/master
[mono.git] / mcs / tests / test-541.cs
index 60f0ca137811cd564d92073a84e22eb2e485abf2..6b024228830ff4be07e66e868fa3c88e580e4671 100644 (file)
@@ -1,20 +1,23 @@
-delegate void TestFunc (int val);
+using System;
 
-class A
+class ClassMain
 {
-       public A(TestFunc func)
+       delegate void D (int i);
+       
+       public static void Main ()
        {
-               func (0);
+               if (true) {
+                       const bool test = false;
+               } else {
+                       test = false;
+               }
+               
+               D d = delegate (int test) { };
        }
-}
-
-class TestClass
-{
-       static int i = 1;
-       static readonly A a = new A(delegate(int a) { i = a; });
-
-       static int Main ()
-       {
-               return i;
+       
+       static bool test { 
+               set {
+               }
        }
 }
+