summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0135-3.cs
blob: bc1a8c20d455da2bba257675b3d446614b021c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0135: `i' conflicts with a declaration in a child block
// Line: 9

delegate int F (int i);
class Foo {
	static int i;
	static void Main ()
	{
		i = 0;
		F f = delegate (int i) { return i; };
	}
}