[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0120-12.cs
1 // CS0120: An object reference is required to access non-static member `Foo.Bar()'
2 // Line: 22
3
4 using System;
5
6 public class Foo
7 {
8         public string Bar ()
9         {
10                 return "hello";
11         }
12         public static string Bar (string thing)
13         {
14                 return string.Format ("hello {0}", thing);
15         }
16 }
17
18 public class MainClass
19 {
20         public static void Main ()
21         {
22                 Console.WriteLine (Foo.Bar ());
23         }
24 }