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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 14:39:57 -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 bmaurer@users.sf.net.

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

--- shadow/52508	2003-12-23 14:39:57.000000000 -0500
+++ shadow/52508.tmp.4859	2003-12-23 14:39:57.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 52508
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+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);
+	}
+}