2007-07-13 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Fri, 13 Jul 2007 06:16:11 +0000 (06:16 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 13 Jul 2007 06:16:11 +0000 (06:16 -0000)
commitbf27d9cadb2560ffbc4013cd0af78a06c9a13003
treef8d40b31e4f81d2d72bf0ad41dd37c2a4d6a7c98
parente810236970e13107f92623b3a6f5ceb980e9feb8
2007-07-13  Miguel de Icaza  <miguel@novell.com>

* iterators.cs (Yield.CheckContext): Check for the iterator type
also here as we can call into Yield even in codepaths that are not
directly checked by
(MethodOrOperator is the only path that was checked).

In addition to the standard check, use a more specific check for
constructors to report a more verbose error.

svn path=/trunk/mcs/; revision=81925
mcs/mcs/ChangeLog
mcs/mcs/iterators.cs