allow integer literals to be passed to var args parameters and parameters of type var
#623
Labels
accepted
This proposal is planned.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
consider the following zig code:
fails with:
error: parameter of type '(integer literal)' requires comptime
It would feel much better if 'sizeOf' was defined to either return a u32 or would automatically coerce into the appropriate type rather than having to cast it.
The text was updated successfully, but these errors were encountered: