https://bugzilla.novell.com/show_bug.cgi?id=328490
Summary: (g)mcs fails to properly resolve member/class references
Product: Mono: Compilers
Version: 1.2
Platform: Other
OS/Version: openSUSE 10.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
The attached code demonstrates a bug where a subclass refers to a static method
of another class, while the referrer's superclass contains a private field of
the same name (and type) as the class referred to:
main.cs(28,5): error CS0122: `SuperClass.TestClass' is inaccessible due to its
protection level
main.cs(20,5): (Location of the symbol related to previous error)
The code compiles and works on MS.NET. It seems the bug is in the order of
resolution of such references - csc seems to look for the designated class from
outside in, (g)mcs seems to work in the other direction.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs