Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jul 16, 2024
1 parent d894e2b commit a79426d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lang/typechecking.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ let function_app_value_restriction fn =
in
List.filter (fun v -> not (List.memq v pl)) l
in
filter_app_vars [] fn.Term.t = []
match Type.demeth fn.Term.t with
| { Type.descr = Arrow (_, t) } -> filter_app_vars [] t = []
| _ -> false

(** Terms for which generalization is safe. *)
let value_restriction t =
Expand Down

0 comments on commit a79426d

Please sign in to comment.