[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-676.cs
1 using System;
2
3 namespace N
4 {
5         class Item
6         {
7                 public Item ()
8                 {
9                 }
10                 
11                 public enum ItemSlot
12                 {
13                         ItemM1,
14                         ItemM2
15                 }
16         }
17 }
18
19 namespace N
20 {
21         public class Test
22         {
23                 Item this [Test slot]
24                 {
25                         get { return null; }
26                 }
27                 
28                 void Foo (Item.ItemSlot i)
29                 {
30                         object oo = this [null];
31                         
32                         switch (i)
33                         {
34                                 case Item.ItemSlot.ItemM1:
35                                         break;
36                         }
37                 }
38         
39                 public static int Main ()
40                 {
41                         return 0;
42                 }
43         }
44 }