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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to