[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-126.cs
1 //
2 // It is possible to invoke object methods in an interface.
3 //
4 using System;
5
6 interface Iface {
7         void Method ();
8 }
9
10 class X : Iface {
11
12         void Iface.Method () {} 
13         
14         public static int Main ()
15         {
16                 X x = new X ();
17                 Iface f = x;
18
19                 if (f.ToString () != "X")
20                         return 1;
21
22                 return 0;
23         }
24 }