- Code: Select all
class Test
def a
pass
def b is shared
.a()
I get the compilation error:
- Code: Select all
error: Cannot access instance member "a" from the current shared member. Make the member "shared" or create an instance of the type.
Is there a way to call a private method from a shared method?