Function default_wrong_type

Source
pub fn default_wrong_type(
    args: &[PreExp],
    fun: &dyn RoocFunction,
    context: &TypeCheckerContext,
    fn_context: &FunctionContext<'_>,
) -> TransformError
Expand description

Creates a type error for wrong argument types.

ยงArguments

  • args - The actual arguments passed
  • fun - The function being called
  • context - Type checker context
  • fn_context - Function context