[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-844.cs
1 // Compiler options: -warn:4 -warnaserror
2
3 // Checks no CS0219 warning is issued
4
5 class C
6 {
7         int Prop { get { return 4; } }
8
9         int this[char arg] { get { return 2; } }
10
11         static void Foo (ref int arg)
12         {
13         }
14
15         public void Method (int i)
16         {
17                 long p1 = Prop;
18                 long p2 = new C ()['h'];
19
20                 int arg = 1;
21                 Foo (ref arg);
22         }
23
24         public static void Main ()
25         {
26         }
27 }