**** Merged from MCS ****
[mono-project.git] / mcs / errors / cs0197.cs
blobfe0fec2f421c43648b3eeb19587eae40d2024127
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;
7 static void Foo (ref int i)
11 static void Main()
13 T t = new T ();
14 t.bar = 12;
15 Foo (ref t.bar);