Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / tests / test-iter-25.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class D : IDisposable
5 {
6         public D (string bar)
7         {
8         }
9
10         public void Dispose ()
11         {
12         }
13 }
14
15 public class UploadAction
16 {
17         public static void RunOnThread (Action a)
18         {
19                 a.Invoke ();
20         }
21
22         public static IEnumerable<object> TagsError ()
23         {
24                 string tags;
25                 tags = "";
26
27                 RunOnThread (() => {
28                         using (D u = new D (tags)) {
29                                 Console.WriteLine ("No Op");
30                         }
31                 });
32
33                 yield break;
34         }
35
36         public static void Main ()
37         {
38                 foreach (object bar in TagsError ()) {
39                         Console.WriteLine ("No op {0}", bar);
40                 }
41         }
42 }