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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 20 21:35:46 EDT 2009


User rkumpera at novell.com added comment

Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW
      Info Provider|rkumpera at novell.com         |
           Severity|Normal                      |Minor

--- Comment #2 from Rodrigo Kumpera <rkumpera at novell.com>  2009-09-20 19:35:42 MDT ---
I wonder what the C# spec says about this, because a type can have multiple
fields with the same name if their types are not the same.

Picking the first is as good as picking none, even so, matching csc behavior is
desirable if we find users exploiting it.

There is one point were mcs gets it very wrong, the second error CS0122 doesn't
make sense, as both 'Foo.a' fields are public.

Lowering the priority as this kind of thing that only obfuscators produce.

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