[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-108.cs
blob6465742175ce6f4f8f6e45d150ae587233420643
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 public static void Main ()
23 Test<int> test = new Test<int> (3);
24 foreach (int a in test)