[Mono-bugs] [Bug 536593] New: MCS cannot compile simple public field assignment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 3 11:23:27 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=536593


           Summary: MCS cannot compile simple public field assignment
    Classification: Mono
           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: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=316658)
 --> (http://bugzilla.novell.com/attachment.cgi?id=316658)
test file

Compile the attached MSIL file.

Compile this code referencing it:

using System;

public class Driver {
    static void  Main () {
        Foo foo = new Foo ();
        foo.a = 10;
    }
}


Result:
in.cs(6,21): error CS0229: Ambiguity between `Foo.a' and `Foo.a'
/Users/rodrigokumpera/repo/mono/mono/hardening/test.dll (Location of the symbol
related to previous error)
in.cs(6,21): error CS0122: `Foo.a' is inaccessible due to its protection level
/Users/rodrigokumpera/repo/mono/mono/hardening/test.dll (Location of the symbol
related to previous error)
Compilation failed: 2 error(s), 0 warnings


Expected result:
Compilation success.

-- 
Configure bugmail: http://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