Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2004-12-06 22:16:03 +0300
committerMartin Baulig <martin@novell.com>2004-12-06 22:16:03 +0300
commite3fe0e50a0fe575656e83c444a24b332d29529f6 (patch)
treed452d98476d48ae662f790acfd725fc7ad37b05c /mcs/errors/cs1622.cs
parentbc4a57fb01630d775ee85f2cc09d11b70db183b8 (diff)
2004-12-06 Martin Baulig <martin@ximian.com>
* cs8206.cs: Renamed to cs1622.cs. svn path=/trunk/mcs/; revision=37214
Diffstat (limited to 'mcs/errors/cs1622.cs')
-rw-r--r--mcs/errors/cs1622.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs1622.cs b/mcs/errors/cs1622.cs
new file mode 100644
index 00000000000..7f879962237
--- /dev/null
+++ b/mcs/errors/cs1622.cs
@@ -0,0 +1,17 @@
+// cs1622.cs: Return not allowed in iterator method
+// Line: 11
+using System.Collections;
+
+class X {
+ IEnumerator MyEnumerator (int a)
+ {
+ if (a == 0)
+ yield return 1;
+ else
+ return null;
+ }
+
+ static void Main ()
+ {
+ }
+}