Closed restorer closed 5 years ago
class Bug11 { public function bug(a : Null<String>, b : Null<String>) : Void { if (a == null || b == null) { return; } // Safety: Cannot access "length" of a nullable value. // Probably, variation of Bug7 a.length + b.length; } }
See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L153 for working example.
This is for Haxe 4.0.0-preview.5 and Safety from master.
fixed in https://github.com/HaxeFoundation/haxe/pull/7717
See https://github.com/restorer/haxe-safety-bugs/blob/master/safetybugs/Main.hx#L153 for working example.