[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0197.cs
1 // CS0197: Passing `T.bar' as ref or out or taking its address may cause a runtime exception because it is a field of a marshal-by-reference class
2 // Line: 15
3 // Compiler options: -warnaserror -warn:1
4
5 using System;
6 class T : MarshalByRefObject {
7         int bar;
8
9         static void Foo (ref int i)
10         {
11         }
12
13         static void Main()
14         {
15                 T t = new T ();
16                 t.bar = 12;
17                 Foo (ref t.bar);
18         }
19 }
20
21
22
23
24
25