[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs1624-2.cs
1 // CS1624: 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;
5
6 class X
7 {
8         IEnumerator this [int u]
9         {
10             get {
11                 yield return 1;
12                 yield return 2;
13                 yield return 3;
14             }
15             set
16             {
17                 yield return 3;         
18             }       
19         }
20 }