2004-11-25 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Thu, 25 Nov 2004 12:10:54 +0000 (12:10 -0000)
committerMartin Baulig <martin@novell.com>
Thu, 25 Nov 2004 12:10:54 +0000 (12:10 -0000)
commit45a60464888aac556fd0e239a8c27184d14f2c74
tree254514b1d084042c2c54da1edd3b0ef6b7a9468b
parentfa0d64412f1eb879ecfdda14fc63dc832b57efc3
2004-11-25  Martin Baulig  <martin@ximian.com>

* iterators.cs (Iterator.DoDefineMembers): Override and lookup the
"Dispose" method from the `current_type'.
(Iterator.EmitMoveNext): Use the `dispose_method' we looked up in
DoDefineMembers() instead of using the MethodBuilder; this is
required for generic iterators.

* class.cs (TypeContainer.DoDefineMembers): Make this virtual.

svn path=/trunk/mcs/; revision=36540
mcs/gmcs/ChangeLog
mcs/gmcs/class.cs
mcs/gmcs/iterators.cs