Skip to content

Safe navigation operator not supported #96

@cedx

Description

@cedx

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions