G'DAY MATE!
// declare function `f()`
THE HARD YAKKA FOR f IS () <
GIMME "No args";
>
// intended to be an overload, ends up being a silent redefinition
THE HARD YAKKA FOR f IS (x) <
GIMME x;
>
f(); // <- OI MATE, CAN YA FUCKIN' COUNT?? EXPECTED 1 ARGUMENTS BUT GOT 0
CHEERS C***!
That feels like the wrong error for that context. If the language doesn't support overloading, you shouldn't be able to redefine a function with the same name.
That feels like the wrong error for that context. If the language doesn't support overloading, you shouldn't be able to redefine a function with the same name.