Skip to content

Can access private properties when using this #41

Description

@codecat

You can access private properties if you use this. to access them.

class Base {
	private string m_test = "hello world";
}

class Foo : Base {
	void Something() {
		print(this.m_test); // works
		print(m_test); // illegal access
	}
}

void Main() {
	Foo().Something();
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions