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:
Diffstat (limited to 'mcs/errors/cs1579.cs')
-rwxr-xr-xmcs/errors/cs1579.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1579.cs b/mcs/errors/cs1579.cs
new file mode 100755
index 00000000000..93fc43044af
--- /dev/null
+++ b/mcs/errors/cs1579.cs
@@ -0,0 +1,13 @@
+// cs1579.cs: foreach statement cannot operate on variables of type X because X does not contain a definition for GetEnumerator or is not accessible
+// Line: 10
+class X {
+}
+
+class Y {
+ void yy (X b)
+ {
+
+ foreach (object a in b)
+ ;
+ }
+}