2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1624-2.cs
blob45ef0c59f7188cd089a7149bb46d665e3f7ce9a5
1 // cs1624-2.cs: The body of `X.this[int].set' cannot be an iterator block because `void' is not an iterator interface type
2 // Line: 15
3 using System;
4 using System.Collections;
6 class X
8 IEnumerator this [int u]
10 get {
11 yield return 1;
12 yield return 2;
13 yield return 3;
15 set
17 yield return 3;