Skip to content

Commit b14d120

Browse files
committed
fix(ci): fix runtime error
1 parent 7f86307 commit b14d120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rivet/src/checker/call_expr.ri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ extend Checker {
494494
|| spread_expr_sym.info is .Slice {
495495
last_arg_type := func_.args[func_.args.len - 1].type;
496496
spread_t := ast.Type.Variadic(spread_expr_sym.info.elem_type()?);
497-
self.check_types(spread_expr_t, spread_t) catch |err| {
497+
self.check_types(spread_t, last_arg_type) catch |err| {
498498
report.error(err.to_string(), call_expr.spread_expr.position());
499499
};
500500
} else {

0 commit comments

Comments
 (0)