linux-packaging-mono/mcs/tests/test-iter-25.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

43 lines
557 B
C#

using System;
using System.Collections.Generic;
public class D : IDisposable
{
public D (string bar)
{
}
public void Dispose ()
{
}
}
public class UploadAction
{
public static void RunOnThread (Action a)
{
a.Invoke ();
}
public static IEnumerable<object> TagsError ()
{
string tags;
tags = "";
RunOnThread (() => {
using (D u = new D (tags)) {
Console.WriteLine ("No Op");
}
});
yield break;
}
public static void Main ()
{
foreach (object bar in TagsError ()) {
Console.WriteLine ("No op {0}", bar);
}
}
}