checkArguments :: ComparisonHow the inferred type should be compared to the expected result type.
-> ExpandHiddenInsert trailing hidden arguments?
-> ExprThe function (a head).
-> [NamedArg Expr]The arguments to check.
-> TypeType of the function.
-> TypeExpected result type (type of the whole application).
-> (ArgsCheckState CheckedTarget -> TCM Term)Continuation receiving the check arguments.
-> TCM Term
checkArguments cmp exph hd args t0 t k tries checkArgumentsE cmp exph hd args t0 t.
If it succeeds, it continues k with the returned results. If it fails,
it registers a postponed typechecking problem and returns the resulting new
meta variable.
Checks e := ((hd : t0) args) : t.