diff options
author | César Natarén <cesar@mono-cvs.ximian.com> | 2002-12-20 00:56:08 +0300 |
---|---|---|
committer | César Natarén <cesar@mono-cvs.ximian.com> | 2002-12-20 00:56:08 +0300 |
commit | df5afd9d377b95bc93ccaeaca7a163b2a36d0413 (patch) | |
tree | 716b636755e6cb1016bbc86f7b0408985fc8e0e5 /mcs/errors/cs0230.cs | |
parent | 630c4a5800a5e64021e11e28473d72a15ac4f202 (diff) |
Added file cs0230.cs
svn path=/trunk/mcs/; revision=9782
Diffstat (limited to 'mcs/errors/cs0230.cs')
-rwxr-xr-x | mcs/errors/cs0230.cs | 17 |
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); + } + } +} |