Bug 315252 (MONO60730) - [PATCH] Member access from a nested class member allowed
Summary: [PATCH] Member access from a nested class member allowed
Status: RESOLVED FIXED
Alias: MONO60730
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2004-06-25 08:19 UTC by Mike Kestner
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
test case (206 bytes, text/plain)
2004-06-25 08:19 UTC, Thomas Wiest
Details
test case (248 bytes, text/plain)
2004-06-25 08:26 UTC, Thomas Wiest
Details
proposed fix (1.01 KB, patch)
2004-06-25 10:33 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:44:04 UTC


---- Reported by mkestner@ximian.com 2004-06-25 01:19:00 MST ----

The attached test case should error out because the method Bar accesses a
member of B without an instance.  If you uncomment the similar access on
Main, the error is reported properly, but apparently superclass members are
fair game in mcs-land.



---- Additional Comments From mkestner@ximian.com 2004-06-25 01:19:53 MST ----

Created an attachment (id=166336)
test case




---- Additional Comments From mkestner@ximian.com 2004-06-25 01:26:15 MST ----

oops, sorry first example was crack.  this one shows what I meant. 
Access to the commented Bar prop reports the error properly, but the
Foo prop on the superclass is fair game.



---- Additional Comments From mkestner@ximian.com 2004-06-25 01:26:40 MST ----

Created an attachment (id=166337)
test case




---- Additional Comments From rharinath@novell.com 2004-06-25 03:33:08 MST ----

Created an attachment (id=166338)
proposed fix




---- Additional Comments From rharinath@novell.com 2004-07-02 07:24:08 MST ----

applied to CVS
r=baulig


Imported an attachment (id=166336)
Imported an attachment (id=166337)
Imported an attachment (id=166338)

Unknown operating system unknown. Setting to default OS "Other".