Method and variable name is the same

The ambiguity between local variables and methods only arises for receiverless message sends with no argument list. So, the solution is obvious: either provide a receiver or an argument list:

self.hello
hello()

See also

Leave a Comment