The following should all trace true because haxe generates null-checks inside the function body.
But genes puts the default value on the function signature thus breaks the foo(null) case
class Main {
static function main() {
trace(foo(1) == 1);
trace(foo() == 42);
trace(foo(null) == 42); // false with genes because null is returned
}
static function foo(v = 42)
return v;
}
The following should all trace
true
because haxe generates null-checks inside the function body.But genes puts the default value on the function signature thus breaks the
foo(null)
case