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

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

Deleted: branches/martin/anonymous-methods/work/test-martin-26.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-26.cs    2006-10-04 
20:51:14 UTC (rev 66266)
+++ branches/martin/anonymous-methods/work/test-martin-26.cs    2006-10-04 
20:51:17 UTC (rev 66267)
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-class MyDisposable : IDisposable
-{
-       static int next_id;
-       int id = ++next_id;
-
-       public void Dispose ()
-       { }
-
-       public int ID {
-               get { return id; }
-       }
-
-       public override string ToString ()
-       {
-               return String.Format ("{0} ({1})", GetType (), id);
-       }
-}
-
-class X
-{
-       public static IEnumerable<int> Test (int a)
-       {
-               MyDisposable d;
-               using (d = new MyDisposable ()) {
-                       yield return a;
-                       yield return d.ID;
-               }
-       }
-
-       static void Main ()
-       {
-               foreach (int a in Test (5))
-                       Console.WriteLine (a);
-       }
-}

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

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

Reply via email to