Update to latest spec
authorMiguel de Icaza <miguel@gnome.org>
Tue, 30 Sep 2003 17:47:44 +0000 (17:47 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 30 Sep 2003 17:47:44 +0000 (17:47 -0000)
svn path=/trunk/mcs/; revision=18438

mcs/tests/2test-1.cs
mcs/tests/2test-2.cs
mcs/tests/2test-3.cs
mcs/tests/2test-4.cs

index b85e38079bb08fd86b590a7ee484f2383dee4797..7dcd6be055db356859d969f3d43a78dbd671fb5c 100644 (file)
@@ -4,16 +4,16 @@ using System.Collections;
 class X {
        static IEnumerator GetIt ()
        {
-               yield 1;
-               yield 2;
-               yield 3;
+               yield return 1;
+               yield return 2;
+               yield return 3;
        }
        
        static IEnumerable GetIt2 ()
        {
-               yield 1;
-               yield 2;
-               yield 3;
+               yield return 1;
+               yield return 2;
+               yield return 3;
        }
 
        static int Main ()
index 876151fb86875fd29dabfe50bf2f71475d73d980..1fd14fbffd36489855431cd90edd6f7e678c8118 100644 (file)
@@ -7,10 +7,10 @@ class X {
 
        static IEnumerator GetRange ()
        {
-               yield 1;
+               yield return 1;
                for (i = start; i < end; i++)
-                       yield i;
-               yield 100;
+                       yield return i;
+               yield return 100;
        }
 
        static int Main ()
index 314ad57b5f195f93746410b58ff75901468599e0..a96c571735182605eabbbf89e909b5e775e3a4c4 100644 (file)
@@ -8,13 +8,13 @@ class X {
        static IEnumerable GetIt (int [] args)
        {
                foreach (int a in args)
-                       yield a;
+                       yield return a;
        }
 
        static IEnumerable GetMulti (int [,] args)
        {
                foreach (int a in args)
-                       yield a;
+                       yield return a;
        }
        
        static int Main ()
index 01b4fbe8b37ee8489d243012a50f1074b8225025..9581d0cb04b37b440c87dda66308189e8f425a44 100644 (file)
@@ -5,7 +5,7 @@ class X {
        static IEnumerable GetRange (int start, int end)
        {
                for (int i = start; i < end; i++)
-                       yield i;
+                       yield return i;
        }
 
        static void Main ()