Closed milosonator closed 7 years ago
This is a compiler bug. The memberNode
generated for A
in the inherit A
statement is not being tagged as onSelf
The missing onSelf
flag is added in commit fbd4e9bf8. The reason that it was missing is that the original request in the inherit statement is represented as a memberNode
,because it is a request without arguments. Where the arguments are added, this is transformed into a callNode
; the isSelfRequest
flag was not being copied.
The incorrect line number in the error message is fixed in commit 929d331f.
The incorrect method name (A$build(_,_,_)
rather than A
) in the error message is fixed in commit 61df4bc5b.
Thanks for looking into this and letting me know what was going on.
Given the following program:
The following error is produced:
I expect this program to successfully evaluate, since the access to
A
is from the inside. The following program illustrates this when requesting theA
method from the body of the object constructor, and from the same scope as theA
method is defined in:Executes successfully.