The compiler will yield the following compilation error:
[ERROR] call argument count mismatch
--> /home/werle/repos/zzmodules/runtime-assert/tests/pass.zz:10:3
|
10 | assert(true);β
| ^----^
|
= function '::runtime_assert::assert' is defined over 5 arguments, but you passed 4
when the message argument is not defined. Is this intended? The compiler will succeed in compilation when the message argument is given.
yeah mixing them is broken.
I don't really want to fix it tho, because callsite_source needs to be replaced entirely with a callsite assign macro call,
Consider the following hypothetical
assert
function that mixescallsite_source
and callsite assign syntax:The compiler will yield the following compilation error:
when the
message
argument is not defined. Is this intended? The compiler will succeed in compilation when themessage
argument is given.