[Mono-bugs] [Bug 61907][Nor] Changed - Iterator methods can have return types other than IEnumerable and IEnumerator

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Aug 2004 03:44:06 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=61907

--- shadow/61907	2004-08-04 14:49:46.000000000 -0400
+++ shadow/61907.tmp.6468	2004-08-05 03:44:06.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 61907
 Product: Mono: Compilers
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: martin@ximian.com                            
 ReportedBy: sourcejedi@phonecoop.coop               
@@ -76,6 +76,17 @@
 Additional Information:
 
 The C# 2.0 spec might not yet been finalized, but I'd be suprised if it
 changed on this issue - you really shouldn't be allowed to use your own
 IEnumerator / IEnumerable interfaces (or even classes) for iterator method
 return types.
+
+------- Additional Comments From martin@ximian.com  2004-08-05 03:44 -------
+This may have been broken in Mono 1.0 (broken in the sense that we did
+not report this error), but it's fixed in the meantime.
+
+The spec explicitly does *not* allow any types except IEnumerable,
+IEnumerator and their generic counterparts.  See 22.1.1/2 in your
+version (page 69) or 27.1.1/2 (page 424) of the latest working draft
+of the C# spec.
+
+This is not surprising, anything else would not make any sense at all.