Author: martin
Date: 2006-10-04 16:47:24 -0400 (Wed, 04 Oct 2006)
New Revision: 66255

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


Deleted: branches/martin/anonymous-methods/work/test-martin-27.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-27.cs    2006-10-04 
20:46:49 UTC (rev 66254)
+++ branches/martin/anonymous-methods/work/test-martin-27.cs    2006-10-04 
20:47:24 UTC (rev 66255)
@@ -1,43 +0,0 @@
-using System;
-
-public delegate void Hello ();
-
-struct Foo
-{
-       public int ID;
-
-       public Foo (int id)
-       {
-               this.ID = id;
-       }
-
-       public void Test (Foo foo)
-       {
-               Foo bar = this;
-               Hello hello = delegate {
-                       foo.Hello (8);
-                       bar.Hello (3);
-               };
-               hello ();
-       }
-
-       public void Hello (int value)
-       {
-               if (ID != value)
-                       throw new InvalidOperationException ();
-       }
-
-       public override string ToString ()
-       {
-               return String.Format ("Foo ({0})", ID);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-               Foo foo = new Foo (3);
-               foo.Test (new Foo (8));
-       }
-}

Copied: trunk/mcs/tests/test-anon-54.cs (from rev 66254, 
branches/martin/anonymous-methods/work/test-martin-27.cs)

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

Reply via email to