Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition problem with final assign #11173

Closed
RblSb opened this issue Apr 21, 2023 · 0 comments · Fixed by #11200
Closed

Go to definition problem with final assign #11173

RblSb opened this issue Apr 21, 2023 · 0 comments · Fixed by #11200

Comments

@RblSb
Copy link
Member

RblSb commented Apr 21, 2023

class Main {
	static final field = 0;
	static function main() {
		final local = 0;
		local = 5; // ok

		field = 5; // `field` go to definition error
		field; // ok

		final main2 = new Main2();
		main2.value = 0; // `value` go to definition error
		main2.value; // ok
	}
}

class Main2 {
	public final value = 0;
	public function new() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant