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 740322b commit c008f88Copy full SHA for c008f88
compiler/frontend/bs_builtin_ppx.ml
@@ -180,7 +180,7 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
180
pc_rhs = body;
181
}
182
in
183
- let loc = Location.none in
+ let loc = {pvb_pat.ppat_loc with loc_ghost = true} in
184
let error_case =
185
match variant with
186
| `Result ->
@@ -209,7 +209,7 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
209
default_expr_mapper self
210
{
211
e with
212
- pexp_desc = Pexp_match (pvb_expr, [ok_case; error_case]);
+ pexp_desc = Pexp_match (pvb_expr, [error_case; ok_case]);
213
pexp_attributes = e.pexp_attributes @ pvb_attributes;
214
})
215
| Pexp_let
0 commit comments