Closed JSAbrahams closed 4 years ago
Even if a function or field is marked as private, an outsider can still access these.
class A def private my_field: Int <- 10 def a <- A() # this should cause the type checker to error, but it doesn't print a.my_field
The type checker should error if we try to access a private field.
Description of Bug
Even if a function or field is marked as private, an outsider can still access these.
How to Reproduce
Expected behaviour
The type checker should error if we try to access a private field.