Author: marek
Date: 2007-06-19 08:27:59 -0400 (Tue, 19 Jun 2007)
New Revision: 80140

Modified:
   trunk/mcs/tests/gtest-var-04.cs
Log:
Add a test for array foreach



Modified: trunk/mcs/tests/gtest-var-04.cs
===================================================================
--- trunk/mcs/tests/gtest-var-04.cs     2007-06-19 12:21:19 UTC (rev 80139)
+++ trunk/mcs/tests/gtest-var-04.cs     2007-06-19 12:27:59 UTC (rev 80140)
@@ -7,10 +7,7 @@
 {
        static int Main ()
        {
-               List<string> strings = new List<string> ();
-               strings.Add ("Foo");
-               strings.Add ("Bar");
-               strings.Add ("Baz");
+               string[] strings = new string[] { "Foo", "Bar", "Baz" };
                
                foreach (var v in strings)
                        if (v.GetType () != typeof (string))

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

Reply via email to