using System.Collections.Generic; class X { public Test (mutable a : int,mutable b : long) : IEnumerable[int] { while (a < b) { a++; yield a; }; } static Main () : int { mutable x = X (); mutable sum = 0; foreach ( i in x.Test (3, 8L)) sum += i; if ( sum == 30) 0 else 1; } } /* BEGIN-OUTPUT END-OUTPUT */