We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Function$
1 parent c1c8e11 commit dfb4b2eCopy full SHA for dfb4b2e
compiler/ml/translcore.ml
@@ -823,7 +823,9 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
823
with Not_constant -> Lprim (Pmakeblock Blk_tuple, ll, e.exp_loc))
824
| Texp_construct ({txt = Lident "false"}, _, []) -> Lconst Const_false
825
| Texp_construct ({txt = Lident "true"}, _, []) -> Lconst Const_true
826
- | Texp_construct ({txt = Lident "Function$"}, _, [expr]) ->
+ | Texp_construct
827
+ ({txt = Lident "Function$"}, _, [({exp_desc = Texp_function _} as expr)])
828
+ ->
829
(* ReScript uncurried encoding *)
830
let loc = expr.exp_loc in
831
let lambda = transl_exp expr in
0 commit comments