You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm. I think since we're emulating Ruby's behavior it might make sense to default fields to protected. We could allow using @syntax to refer to private and public fields that are not constants.
Maybe for that we'd want to make a syntax for declarations in cases where you want to change the visibility.
The compiler always create private fields:
https://github.com/mirah/mirah/blob/master/lib/mirah/jvm/compiler.rb#L593-597
In some cases, constants for instance, public and final fields are useful.
The text was updated successfully, but these errors were encountered: