pub fn validate_user_call(
func: &CompiledFunction,
args: &[VmValue],
span: Option<Span>,
) -> Result<(), VmError>Expand description
Validate a user-defined function call: arity (respecting defaults +
rest), then per-parameter declared-type assertion for parameters
that carry a TypeExpr in their crate::chunk::ParamSlot.