Copied remotely
[mono.git] / mcs / errors / cs0197.cs
1 //cs0197.cs: Can not pass fields of a MarshalByRefObject by ref or out
2 // Line: 15
3 using System;
4 class T : MarshalByRefObject {
5         int bar;
6
7         static void Foo (ref int i)
8         {
9         }
10
11         static void Main()
12         {
13                 T t = new T ();
14                 t.bar = 12;
15                 Foo (ref t.bar);
16         }
17 }
18
19
20
21
22
23