Open restorer opened 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.
This is for Haxe 4.0.0-preview.5 and Safety from master.
See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L50 for working example.