We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69431b4 commit 6dc015eCopy full SHA for 6dc015e
compiler/frontend/bs_builtin_ppx.ml
@@ -182,7 +182,7 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
182
pc_rhs = body;
183
}
184
in
185
- let loc = Location.none in
+ let loc = {pvb_pat.ppat_loc with loc_ghost = true} in
186
let error_case =
187
match variant with
188
| `Result ->
@@ -211,7 +211,7 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
211
default_expr_mapper self
212
{
213
e with
214
- pexp_desc = Pexp_match (pvb_expr, [ok_case; error_case]);
+ pexp_desc = Pexp_match (pvb_expr, [error_case; ok_case]);
215
pexp_attributes = e.pexp_attributes @ pvb_attributes;
216
})
217
| Pexp_let
0 commit comments