Author: martin
Date: 2006-10-04 16:51:21 -0400 (Wed, 04 Oct 2006)
New Revision: 66268
Added:
trunk/mcs/tests/gtest-anon-28.cs
Removed:
branches/martin/anonymous-methods/work/test-martin-28.cs
Log:
New test.
Deleted: branches/martin/anonymous-methods/work/test-martin-28.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-28.cs 2006-10-04
20:51:17 UTC (rev 66267)
+++ branches/martin/anonymous-methods/work/test-martin-28.cs 2006-10-04
20:51:21 UTC (rev 66268)
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-public delegate void Hello ();
-
-struct Foo
-{
- public int ID;
-
- public Foo (int id)
- {
- this.ID = id;
- }
-
- public IEnumerable<Foo> Test (Foo foo)
- {
- yield return this;
- yield return foo;
- }
-
- 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);
- foreach (Foo bar in foo.Test (new Foo (8)))
- Console.WriteLine (bar);
- }
-}
Copied: trunk/mcs/tests/gtest-anon-28.cs (from rev 66267,
branches/martin/anonymous-methods/work/test-martin-28.cs)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches