[Mono-bugs] [Bug 496922] New: C# 3.0 object initializer issue

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 21 11:38:46 EDT 2009


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: msafar at novell.com
        ReportedBy: mhabersack at novell.com
         QAContact: mono-bugs at lists.ximian.com
            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.


More information about the mono-bugs mailing list