@@ -63,16 +63,14 @@ and ident_unknown = ident_create "unknown"
6363
6464and ident_promise = ident_create " promise"
6565
66- and ident_uncurried = ident_create " function$"
67-
6866type test = For_sure_yes | For_sure_no | NA
6967
7068let type_is_builtin_path_but_option (p : Path.t ) : test =
7169 match p with
7270 | Pident {stamp} when stamp = ident_option.stamp -> For_sure_no
7371 | Pident {stamp} when stamp = ident_unit.stamp -> For_sure_no
74- | Pident {stamp}
75- when stamp > = ident_int.stamp && stamp < = ident_uncurried.stamp ->
72+ | Pident {stamp} when stamp > = ident_int.stamp && stamp < = ident_promise.stamp
73+ ->
7674 For_sure_yes
7775 | _ -> NA
7876
@@ -110,8 +108,6 @@ and path_extension_constructor = Pident ident_extension_constructor
110108
111109and path_promise = Pident ident_promise
112110
113- and path_uncurried = Pident ident_uncurried
114-
115111let type_int = newgenty (Tconstr (path_int, [] , ref Mnil ))
116112
117113and type_char = newgenty (Tconstr (path_char, [] , ref Mnil ))
@@ -233,8 +229,6 @@ and ident_some = ident_create "Some"
233229
234230and ident_ctor_unknown = ident_create " Unknown"
235231
236- and ident_ctor_uncurried = ident_create " Function$"
237-
238232let common_initial_env add_type add_extension empty_env =
239233 let decl_bool =
240234 {
@@ -319,16 +313,6 @@ let common_initial_env add_type add_extension empty_env =
319313 ],
320314 Record_regular );
321315 }
322- and decl_uncurried =
323- let tvar1 = newgenvar () in
324- {
325- decl_abstr with
326- type_params = [tvar1];
327- type_arity = 1 ;
328- type_kind = Type_variant [cstr ident_ctor_uncurried [tvar1]];
329- type_variance = [Variance. covariant];
330- type_unboxed = Types. unboxed_true_default_false;
331- }
332316 and decl_unknown =
333317 let tvar = newgenvar () in
334318 {
@@ -395,7 +379,6 @@ let common_initial_env add_type add_extension empty_env =
395379 |> add_type ident_unit decl_unit
396380 |> add_type ident_extension_constructor decl_abstr
397381 |> add_type ident_exn decl_exn
398- |> add_type ident_uncurried decl_uncurried
399382 |> add_type ident_option decl_option
400383 |> add_type ident_result decl_result
401384 |> add_type ident_lazy_t decl_lazy_t
0 commit comments