[Mono-bugs] [Bug 58098][Nor] Changed - Assignment of out params is not tracked correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 6 May 2004 10:33:43 -0400 (EDT)
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=58098
--- shadow/58098 2004-05-06 03:00:53.000000000 -0400
+++ shadow/58098.tmp.11970 2004-05-06 10:33:43.000000000 -0400
@@ -70,6 +70,27 @@
small example, but without success so far. Stay tuned -- I'll try
again tomorrow to come up with something small that shows the error.
Cheers,
Michi.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-05-06 10:33 -------
+Well, I think this may be a bug in CSC. Is the IL code any different
+if you use `out' in the caller?
+
+Also, what version of the .net fx?
+
+Miguel -- Can you try this on the latest 2.0 beta? Also, can you ask
+the MS QA guy?
+
+Also, I think the error message here should say that you need to use
+`out' (as it would if the variable was assigned). I think a way to
+repro this would be:
+
+class T {
+ static void Main () {
+ int i;
+ Foo (i);
+ }
+ static void Foo (out int i) { i = 0; }
+}