2010-02-20 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / gtest-108.cs
bloba7546e589a6ad57b397a21b7530dc611bd14ba53
1 using System;
2 using System.Collections.Generic;
4 public class Test<T>
6 protected T item;
8 public Test (T item)
10 this.item = item;
13 public IEnumerator<T> GetEnumerator()
15 yield return item;
19 class X
21 static void Main ()
23 Test<int> test = new Test<int> (3);
24 foreach (int a in test)