haxe
haxe copied to clipboard
Null conditional bind does nothing
function main() {
var p:Null<()->String> = () -> "ok";
trace(p?.bind()());
}
https://try.haxe.org/#070F275b
Looking at the generated js you can see that no null check gets inserted for a ?.bind operation.
Oh so that's what these efk_todo in typer.ml are about...