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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCésar Natarén <cesar@mono-cvs.ximian.com>2002-12-20 00:56:08 +0300
committerCésar Natarén <cesar@mono-cvs.ximian.com>2002-12-20 00:56:08 +0300
commitdf5afd9d377b95bc93ccaeaca7a163b2a36d0413 (patch)
tree716b636755e6cb1016bbc86f7b0408985fc8e0e5 /mcs/errors/cs0230.cs
parent630c4a5800a5e64021e11e28473d72a15ac4f202 (diff)
Added file cs0230.cs
svn path=/trunk/mcs/; revision=9782
Diffstat (limited to 'mcs/errors/cs0230.cs')
-rwxr-xr-xmcs/errors/cs0230.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0230.cs b/mcs/errors/cs0230.cs
new file mode 100755
index 00000000000..d79d153a357
--- /dev/null
+++ b/mcs/errors/cs0230.cs
@@ -0,0 +1,17 @@
+//
+// CS0230.cs: foreach statement must contain the type and the variable identifier
+//
+
+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);
+ }
+ }
+}