[Mono-bugs] [Bug 328490] New: (g)mcs fails to properly resolve member/class references
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 26 07:54:21 EDT 2007
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: rharinath at novell.com
ReportedBy: mhabersack at novell.com
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list