[Mono-bugs] [Bug 52508][Nor] New - We dont report CS0197

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Feb 2004 12:47:35 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52508

--- shadow/52508	2004-02-07 12:47:35.000000000 -0500
+++ shadow/52508.tmp.21659	2004-02-07 12:47:35.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 52508
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: We dont report CS0197
+
+CSC gives
+t.cs(14,12): error CS0197: Cannot pass 'T.bar' as ref or out, 
+because 'T.bar' is
+        a marshal-by-reference class
+
+for 
+
+using System;
+class T : MarshalByRefObject {
+	int bar;
+
+	static void Foo (ref int i)
+	{
+	}
+
+	static void Main()
+	{
+		T t = new T ();
+		t.bar = 12;
+		Foo (ref t.bar);
+	}
+}