http://bugzilla.novell.com/show_bug.cgi?id=496922
Summary: C# 3.0 object initializer issue
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Blocks: 494483
Found By: ---
Created an attachment (id=287184)
--> (http://bugzilla.novell.com/attachment.cgi?id=287184)
Test case
If a new object is created using the C# 3.0 object initializer syntax and
assigned to a local variable which already contains a reference to another
object of the same type whose fields/properties are used to initialize the new
object, the code fails to work correctly. The issue is that we allocate just
one local variable and set it before getting the values from the old object.
The attached test case contains source code and binaries compiled both on Mono
and .NET
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs