Skip to content

Commit 1676a38

Browse files
committed
Switch the "expected" and "actual" types for function parameter mismatches
1 parent 09793dd commit 1676a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/me/type.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
182182
None, _ -> ()
183183
| Some a, Ast.TY_param (idx, effect) ->
184184
param_handler a idx effect
185-
| Some a, _ -> demand a b
185+
| Some a, _ -> demand b a
186186
in
187187
Common.arr_iter2 maybe_demand arg_tys in_slot_tys;
188188
get_slot_ty (ty_sig.Ast.sig_output_slot)

0 commit comments

Comments
 (0)