mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix some unary ops
This commit is contained in:
parent
3309270747
commit
dd8dff0f9e
3 changed files with 19 additions and 39 deletions
|
@ -792,7 +792,9 @@ pub fn constrain_expr(
|
|||
let mut arg_types = Vec::with_capacity(args.len());
|
||||
let mut arg_cons = Vec::with_capacity(args.len());
|
||||
|
||||
for (index, (arg_var, arg)) in args.iter().enumerate() {
|
||||
let args_iter = args.iter();
|
||||
|
||||
for (index, (arg_var, arg)) in args_iter.enumerate() {
|
||||
let arg_type = Variable(*arg_var);
|
||||
let reason = Reason::LowLevelOpArg {
|
||||
op: *op,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue