[Mono-bugs] [Bug 421839] New: Coalesce operator should have a lower priority than the assignment operator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 1 02:32:09 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=421839


           Summary: Coalesce operator should have a lower priority than the
                    assignment operator
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lunchtimemama at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Test case:

public class Test

{

    private string name;

    public string Name {

        get { return name ?? name = string.Empty; }

    }

}

Actual Result:
It compiles.

Expected Result:
It should complain about the left-hand operator or something. At least, that's
what csc does. Personally I think the csc behavior is stupid, but I'm not the
boss (yet).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list