Author: martin
Date: 2006-10-04 16:51:06 -0400 (Wed, 04 Oct 2006)
New Revision: 66264

Added:
   trunk/mcs/tests/gtest-anon-14.cs
Removed:
   branches/martin/anonymous-methods/work/test-martin-14.cs
Log:
New test.

Deleted: branches/martin/anonymous-methods/work/test-martin-14.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-14.cs    2006-10-04 
20:51:03 UTC (rev 66263)
+++ branches/martin/anonymous-methods/work/test-martin-14.cs    2006-10-04 
20:51:06 UTC (rev 66264)
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-class X
-{
-       public IEnumerable<T> Test<T> (T a, T b)
-       {
-               yield return b;
-               b = a;
-               yield return a;
-        }
-
-       static int Main ()
-       {
-               X x = new X ();
-               long sum = 0;
-               foreach (long i in x.Test (3, 5)) {
-                       Console.WriteLine (i);
-                       sum += i;
-               }
-
-               Console.WriteLine (sum);
-               return sum == 8 ? 0 : 1;
-       }
-}

Copied: trunk/mcs/tests/gtest-anon-14.cs (from rev 66263, 
branches/martin/anonymous-methods/work/test-martin-14.cs)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to