Author: marek
Date: 2007-08-28 06:13:19 -0400 (Tue, 28 Aug 2007)
New Revision: 84935
Modified:
trunk/mcs/tests/gtest-anontype-02.cs
Log:
New test.
Modified: trunk/mcs/tests/gtest-anontype-02.cs
===================================================================
--- trunk/mcs/tests/gtest-anontype-02.cs 2007-08-28 10:11:29 UTC (rev
84934)
+++ trunk/mcs/tests/gtest-anontype-02.cs 2007-08-28 10:13:19 UTC (rev
84935)
@@ -5,6 +5,11 @@
public class Test
{
+ static object TestA (string s)
+ {
+ return new { s };
+ }
+
static int Main ()
{
string Foo = "Bar";
@@ -15,7 +20,11 @@
return 1;
if (v.Baz != 42)
return 2;
+
+ if (!TestA ("foo").Equals (new { s = "foo" }))
+ return 3;
+ Console.WriteLine ("OK");
return 0;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches