diff options
Diffstat (limited to 'mcs/errors/cs1579.cs')
-rwxr-xr-x | mcs/errors/cs1579.cs | 13 |
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) + ; + } +} |