[Mono-devel-list] Enabling iterators

Miguel de Icaza miguel at ximian.com
Sat Feb 21 20:34:19 EST 2004


Hello!

> cs-parser.cs:4175-4178
> 
> if (RootContext.V2) { 
> 	Report.Error (-222, lexer.Location, "yield statement only available in
> C# 2.0 mode");                    
> 	yyVal = null; 
> }   
> 
> Unless im very much mistaken... that condition should be !RootContext.V2
> You wouldnt believe how confused this could make a simple person like me
> :).  Any idea how this got missed for so long?  Surely someone must have
> tried using iterators?

Yes, that was a buglet in 0.30, I think 0.30.1 shipped with a fix. 

If not, it is on CVS.



More information about the Mono-devel-list mailing list