RealyUniqueName / Safety

Null safety for Haxe
MIT License
54 stars 5 forks source link

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

Open restorer opened 5 years ago

restorer commented 5 years ago
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 commented 5 years ago

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