Skip to content

Safety: Cannot cast nullable value to not nullable type for abstracts #7

@restorer

Description

@restorer
class Bug2 {
    public function bug(?v : haxe.Int32) : Void {
        // Safety: Cannot cast nullable value to not nullable type.
        v == null ? "A" : "B";
    }
}

See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L50 for working example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions