mail-archives/mono-bugs/2003-July/006142.html

86 строки
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 45854][Maj] Changed - self-assignment operator incorrect for multiple assigment
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006141.html">
<LINK REL="Next" HREF="006143.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 45854][Maj] Changed - self-assignment operator incorrect for multiple assigment
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 45854][Maj] Changed - self-assignment operator incorrect for multiple assigment">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Sat, 5 Jul 2003 16:27:30 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006141.html">[Mono-bugs] [Bug 37714][Nor] Changed - error CS0539: Explicit implementation: `get_Item' is not a member of the interface
</A></li>
<LI> Next message: <A HREF="006143.html">[Mono-bugs] [Bug 45819][Maj] Changed - mcs (from current cvs) hangs after/during compilation
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6142">[ date ]</a>
<a href="thread.html#6142">[ thread ]</a>
<a href="subject.html#6142">[ subject ]</a>
<a href="author.html#6142">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:bmaurer@users.sf.net.">bmaurer@users.sf.net.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=45854">http://bugzilla.ximian.com/show_bug.cgi?id=45854</A>
--- shadow/45854 Fri Jul 4 22:52:14 2003
+++ shadow/45854.tmp.2757 Sat Jul 5 16:27:30 2003
@@ -36,6 +36,22 @@
y -= 3;
x =y;
Console.WriteLine(x); //should be -1, I get -1
}
}
&lt;&lt;
+
+------- Additional Comments From <A HREF="mailto:bmaurer@users.sf.net">bmaurer@users.sf.net</A> 2003-07-05 16:27 -------
+This gets rid of all the doubles, and shows that it works with +=
+
+using System;
+class Test {
+ public static void Main()
+ {
+ int x = 0;
+ int y = 2;
+
+ x = (y += 3);
+ Console.WriteLine (x); // expect 5, actual 3
+ Console.WriteLine (y); // expect 5, actual 3
+ }
+}
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006141.html">[Mono-bugs] [Bug 37714][Nor] Changed - error CS0539: Explicit implementation: `get_Item' is not a member of the interface
</A></li>
<LI> Next message: <A HREF="006143.html">[Mono-bugs] [Bug 45819][Maj] Changed - mcs (from current cvs) hangs after/during compilation
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6142">[ date ]</a>
<a href="thread.html#6142">[ thread ]</a>
<a href="subject.html#6142">[ subject ]</a>
<a href="author.html#6142">[ author ]</a>
</LI>
</UL>
</body></html>