summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1579.cs
blob: 6ed611a8fbf8ffd32e63246f2f662ba836751d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS1579: foreach statement cannot operate on variables of type `X' because it does not contain a definition for `GetEnumerator' or is inaccessible
// Line: 11

class X {
}

class Y {
	void yy (X b)
	{
		
		foreach (object a in b)
			;
	}
}