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

cs0230.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23ac662d5a08db4aec44d861d582130185484759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0230.cs: Type and identifier are both required in a foreach statement
// Lise: 12

using System;

class X
{
	public static void Main()
	{
		int [] a = new int [5] {5, 4, 3, 2, 1};
		
		foreach (int in a) {
			Console.WriteLine (x);
		}
	}
}