projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f386495
)
Add new test
author
Miguel de Icaza
<miguel@gnome.org>
Mon, 5 May 2003 04:15:38 +0000
(
04:15
-0000)
committer
Miguel 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]
patch
|
blob
diff --git a/mcs/tests/2test-4.cs
b/mcs/tests/2test-4.cs
new file mode 100644
(file)
index 0000000..
01b4fbe
--- /dev/null
+++ b/
mcs/tests/2test-4.cs
@@ -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);
+ }
+ }
+}