summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0136-3.cs
blob: 21ee277789b95d4e825cf9982543acdaa008eff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else
// Line: 10

using System;

class T
{
	public void Foo (int i)
	{
		Action<int> v = x => { int i = 9; };
	}
}