Simplify more
This commit is contained in:
parent
1c2c6cbc43
commit
e2c831a231
@ -615,12 +615,6 @@ and type_expression : environment -> ?tv_opt:O.type_value -> I.expression -> O.a
|
||||
let output_type = body.type_annotation in
|
||||
return (E_lambda {binder = fst binder ; body}) (t_function input_type output_type ())
|
||||
)
|
||||
| E_constant ("NONE", []) ->
|
||||
let%bind tv_opt = bind_map_option get_t_option tv_opt in
|
||||
begin match tv_opt with
|
||||
| None -> fail @@ simple_info "None without a type annotation"
|
||||
| Some tv -> return (E_constant ("NONE", [])) (t_option tv ())
|
||||
end
|
||||
| E_constant (name, lst) ->
|
||||
let%bind lst' = bind_list @@ List.map (type_expression e) lst in
|
||||
let tv_lst = List.map get_type_annotation lst' in
|
||||
|
Loading…
Reference in New Issue
Block a user