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

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

Open
restorer opened this issue Oct 29, 2018 · 1 comment
Open

Comments

@restorer
Copy link

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.

@restorer
Copy link
Author

This is for Haxe 4.0.0-preview.5 and Safety from master.

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