History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-685
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Doug H
Reporter: Daniel Grunwald
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Private fields of base class should not interfere with local variable names in derived classes

Created: 04/Mar/06 04:50 PM   Updated: 05/Mar/06 06:45 AM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.6

Time Tracking:
Not Specified

File Attachments: 1. Text File boo685.patch (1 kb)

Environment: Boo 0.7.6.2136


 Description  « Hide
import System

class Base:
private parent = object()

class Derived(Base):
def Method():
parent = "Some name"

  1. D:\Dokumente\SharpDevelop Projects\BooCon4\Program.boo(10,9) : error BCE0120: 'BooCon4.Base.parent' is unaccessible due to its protection level.
  2. When inheriting from System.Windows.Forms.Form, a lot of variable names are unavailable because of private fields in Control, Form, etc.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 04/Mar/06 06:59 PM
see if this is a good enough fix

Rodrigo B. de Oliveira - 04/Mar/06 07:19 PM
The patch looks good to me. Could you please also check in a test case?