Details
Description
Boo should throw an error if accessing a non-static member of outer class. (Actually, C# just says the reference cannot be found I believe)
One fix is around line 2029 in the processmethodbodies step, add:
//check if found entity can't possibly be a member of self:
if (member.DeclaringType != CurrentType &&
!(CurrentType.IsSubclassOf(member.DeclaringType)))
That 'fix' doesn't change name resolution though, to exclude non-static members in outer classes.
Issue Links
Activity
Doug H
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Won't Fix [ 2 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Rodrigo B. de Oliveira
made changes -
| Assignee | Peter Johanson [ latexer ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Won't Fix [ 2 ] |
Rodrigo B. de Oliveira
made changes -
| Assignee | Peter Johanson [ latexer ] | Rodrigo B. de Oliveira [ bamboo ] |
Rodrigo B. de Oliveira
made changes -
Doug H
made changes -
| Attachment | boo-450.patch [ 16857 ] |
Rodrigo B. de Oliveira
made changes -
| Assignee | Rodrigo B. de Oliveira [ bamboo ] | Doug Holton [ dh ] |
| Fix Version/s | 0.7 [ 11022 ] | |
| Resolution | Fixed [ 1 ] | |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |