Skip to content

Commit

Permalink
normalization of spread elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0mz committed Aug 26, 2024
1 parent fc35db1 commit 2b3ff65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ast/normalize.ml
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ and normalize_argument (arg : ('M, 'T) Ast'.Expression.expression_or_spread) : n
(* TODO : other cases *)
match arg with
| Ast'.Expression.Expression expr -> normalize_expression empty_context expr
| _ -> failwith "[ERROR] Normalize argument case not defined"
| Ast'.Expression.Spread (_, {argument; _}) -> normalize_expression empty_context argument


and normalize_function (context : context) (loc : Loc.t) ({id; params=(_, {params; _}); body; _} : ('M, 'T) Ast'.Function.t) : norm_expr_t =
Expand Down

0 comments on commit 2b3ff65

Please sign in to comment.