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

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

Deleted: branches/martin/anonymous-methods/work/test-martin-23.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-23.cs    2006-10-04 
20:51:06 UTC (rev 66264)
+++ branches/martin/anonymous-methods/work/test-martin-23.cs    2006-10-04 
20:51:10 UTC (rev 66265)
@@ -1,38 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-
-public delegate void Foo ();
-
-public class Test
-{
-       public static implicit operator Foo (Test test)
-       {
-               return delegate { Console.WriteLine ("Hello World!"); };
-       }
-
-       public static IEnumerable<Test> operator + (Test test, Test foo)
-       {
-               yield return test;
-               yield return foo;
-       }
-
-       public IEnumerable<int> Foo {
-               get {
-                       yield return 3;
-               }
-
-               set {
-                       Console.WriteLine ("Foo!");
-               }
-       }
-
-       static void Main ()
-       {
-               Test test = new Test ();
-               Foo foo = test;
-               foo ();
-               foreach (Test t in test + test)
-                       Console.WriteLine (t);
-       }
-}

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

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

Reply via email to