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

Safe navigation operator not supported #96

Open
cedx opened this issue May 4, 2023 · 0 comments
Open

Safe navigation operator not supported #96

cedx opened this issue May 4, 2023 · 0 comments

Comments

@cedx
Copy link

cedx commented May 4, 2023

In Views, I can't use the safe navigation operator introduced in Haxe 4.3.

Basically, it's the same issue as AlexHaxe/haxe-instrument#17:
the generated code does not check for null values.

For example:

Tooltip.getInstance(event.target)?.dispose();

Becomes:

Tooltip.getInstance(event.target).dispose();

Instead of something like:

let tmp = Tooltip.getInstance(event.target);
if (tmp != null) tmp.dispose();
@cedx cedx changed the title Safe navigation operator operator not supported Safe navigation operator not supported May 4, 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

1 participant