Safety
Safety copied to clipboard
Null safety for Haxe
```haxe class Bug1 { public function bug() : Void { // Arrays of mixed types are only allowed if the type is forced to Array // Bug in "safeArray" ["A",...
```haxe class SomeClass { public function new() {} } class MaybeBug12 { public function bug() : Void { var a = new SomeClass(); // Safety: Cannot cast nullable value to...
```haxe class Bug2 { public function bug(?v : haxe.Int32) : Void { // Safety: Cannot cast nullable value to not nullable type. v == null ? "A" : "B"; }...