Under Mono 2.0.1 and Mono 2.2, the test program below gives the following
output:-
{X=100,Y=200}
{X=0,Y=0}
using System;
using System.Drawing;
namespace Test
{
public class Assignment
{
static void Main ()
{
int X=100,Y=200;
Point start, end;
start = end = new Point(X,Y);
Console.WriteLine(start);
Console.WriteLine(end);
}
}
}
indicating that the multiple assignment start = end = new Point(X,Y) is not
compiling correctly.
The MS compiler works as expected.
-- hywelt
--
View this message in context:
http://www.nabble.com/Mono-Compiler-error-for-multiple-assignments-tp21951900p21951900.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list