[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git] / mcs / errors / cs1622.cs
blobb063b681b0e804b4740c95398997b93b0c57d62b
1 // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
2 // Line: 11
3 using System.Collections;
5 class X {
6 IEnumerator MyEnumerator (int a)
8 if (a == 0)
9 yield return 1;
10 else
11 return null;
14 static void Main ()