[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0206-3.cs
1 // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
2 // Line: 14
3
4 class C
5 {
6         static void Foo (ref object o)
7         {
8         }
9         
10         public static void Main ()
11         {
12                 var v = new { Foo = "Bar" };
13                 
14                 Foo (ref v.Foo);
15         }
16 }