Switch the "expected" and "actual" types for function parameter mismatches

This commit is contained in:
Patrick Walton 2010-09-15 15:42:34 -07:00
parent 09793dd0c8
commit 1676a389be

View File

@ -182,7 +182,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
None, _ -> ()
| Some a, Ast.TY_param (idx, effect) ->
param_handler a idx effect
| Some a, _ -> demand a b
| Some a, _ -> demand b a
in
Common.arr_iter2 maybe_demand arg_tys in_slot_tys;
get_slot_ty (ty_sig.Ast.sig_output_slot)