Bugzilla – Bug 315252
[PATCH] Member access from a nested class member allowed
Last modified: 2007-09-15 21:24:23 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".