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

[php] Vector + conditionals can break diagnostics #10992

Open
RblSb opened this issue Mar 1, 2023 · 0 comments
Open

[php] Vector + conditionals can break diagnostics #10992

RblSb opened this issue Mar 1, 2023 · 0 comments
Milestone

Comments

@RblSb
Copy link
Member

RblSb commented Mar 1, 2023

class Main {
	static public function main() {
		final vec = new haxe.ds.Vector(2);
		trace(vec[0] == 5);
		// comment this, build, uncomment, save file
		trace(vec[1] == 5);
		#if php
		final foo = 1;
		#else
		final foo = 0;
		#end
	}
}
--class-path src
--main Main
--php bin/php
  1. Open project
  2. Comment out second trace and build
  3. Uncomment it
  4. Diagnostics errors for array access: Recursive array get method

bug_vector_php_server.zip

@Simn Simn added this to the Later milestone Mar 24, 2023
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

No branches or pull requests

2 participants