[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / test-anon-110.cs
blob094d1b4a3723a23c15048993d0b5ef0fb97ab85a
1 using System;
2 using System.Collections.Generic;
4 class X
6 public IEnumerable<T> Test<T> (T a, T b)
8 yield return b;
9 b = a;
10 yield return a;
13 public static int Main ()
15 X x = new X ();
16 long sum = 0;
17 foreach (long i in x.Test (3, 5)) {
18 Console.WriteLine (i);
19 sum += i;
22 Console.WriteLine (sum);
23 return sum == 8 ? 0 : 1;