summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1931-2.cs
blob: e9cfe73d41bfb837e2e089d98237c2dc2f5b0023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS1931: A range variable `i' conflicts with a previous declaration of `i'
// Line: 13


using System;
using System.Linq;

class C
{
	public void Foo (int i)
	{
		var e = from v in "a"
			let i = 2
			select v;
	}
}