Add new test
authorMiguel de Icaza <miguel@gnome.org>
Mon, 5 May 2003 04:15:38 +0000 (04:15 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 5 May 2003 04:15:38 +0000 (04:15 -0000)
svn path=/trunk/mcs/; revision=14289

mcs/tests/2test-4.cs [new file with mode: 0644]

diff --git a/mcs/tests/2test-4.cs b/mcs/tests/2test-4.cs
new file mode 100644 (file)
index 0000000..01b4fbe
--- /dev/null
@@ -0,0 +1,19 @@
+using System;
+using System.Collections;
+
+class X {
+       static IEnumerable GetRange (int start, int end)
+       {
+               for (int i = start; i < end; i++)
+                       yield i;
+       }
+
+       static void Main ()
+       {
+               Console.WriteLine ("GetRange 10..20");
+                                  
+               foreach (int i in GetRange (10, 20)){
+                       Console.WriteLine ("i=" + i);
+               }
+       }
+}