Files
mono/mcs/errors/cs0230.cs
T
Marek Safar 1fb4eab34b new tests + error syntax fixes
svn path=/trunk/mcs/; revision=48785
2005-08-24 15:23:34 +00:00

17 lines
246 B
C#

// CS0230.cs: Type and identifier are both required in a foreach statement
// Line: 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);
}
}
}