Closed
Description
If I have a class with a private property:
class MyClass {
private privateProperty;
}
I would expect that having a function with the this
parameter as the class I could access to the private property of the class:
function myFunction( this:MyClass ) {
this.privateProperty; // Gives an error
}
Since I'm specifying where the function is running, shouldn't it be treated as if it's "inside" the class?