diff options
author | Martin Baulig <martin@novell.com> | 2004-12-06 22:16:03 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-12-06 22:16:03 +0300 |
commit | e3fe0e50a0fe575656e83c444a24b332d29529f6 (patch) | |
tree | d452d98476d48ae662f790acfd725fc7ad37b05c /mcs/errors/cs1622.cs | |
parent | bc4a57fb01630d775ee85f2cc09d11b70db183b8 (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.cs | 17 |
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 () + { + } +} |