Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-165.cs
index 6ed567b228835f4e4e418c5ecd21d01dea8ad0b4..1d79d2574c1d33a08baae5d3df132b07dec50dd3 100644 (file)
@@ -1,33 +1,13 @@
-using System;
-using System.Collections;
-class X {
-        delegate void A ();
-        static IEnumerable GetIt (int [] args)
-        {
-                foreach (int arg in args) {
-                        Console.WriteLine ("OUT: {0}", arg);
-                        A a = delegate {
-                                Console.WriteLine ("arg: {0}", arg);
-                               return;
-                        };
-                        a ();
-                        yield return arg;
-                }
-        }
-        static int Main ()
-        {
-                int total = 0;
-                foreach (int i in GetIt (new int [] { 1, 2, 3})){
-                        Console.WriteLine ("Got: " + i);
-                        total += i;
-                }
-                if (total != 6)
-                        return 1;
-                return 0;
-        }
-}
+// Compiler options: -r:gtest-165-lib.dll
+
+class C
+{
+       public static int Main ()
+       {
+               var a = new A<string>();
+               if (a ["s"] != 2)
+                       return 1;
+               
+               return 0;
+       }
+}
\ No newline at end of file