Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1947.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d5869c99bfd3aaea68292acea647aba726cf98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS1947: A range variable `v' cannot be assigned to. Consider using `let' clause to store the value
// Line: 15

using System;
using System.Linq;

class Test
{
	public static int Main ()
	{
		int[] int_array = new int [] { 0, 1 };
		
		var e = from int i in int_array
			let v = true
			where v = false
			select v;
	}
}