summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-iter-28.cs
blob: f58b2b11c28034e18ac974e942ead53658082aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;

class A
{
	public IEnumerable<string> Test (B b)
	{
		string s = "s";

		yield return "a";
		{
			string stringValue = "two";

			Console.WriteLine (b.ToString ());
			{
				Action a = () => {
					Console.WriteLine (s + c.GetType () + stringValue);
				};

				a ();
			}
		}
	}

	C c = new C ();
}

class B
{
}

class C
{
    public static void Main ()
    {
    }
}