Skip to content

Commit

Permalink
one more < 4.06 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Aug 7, 2020
1 parent 14d119f commit 48027c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/reason-parser/reason_heuristics.ml
Expand Up @@ -5,14 +5,8 @@ let is_punned_labelled_expression e lbl =
match e.pexp_desc with
| Pexp_ident { txt }
| Pexp_constraint ({pexp_desc = Pexp_ident { txt }}, _)
| Pexp_coerce ({pexp_desc = Pexp_ident { txt }}, _, _)
->
begin match Longident.unflatten [ lbl ] with
| Some lid ->
txt = lid
| None ->
false
end
| Pexp_coerce ({pexp_desc = Pexp_ident { txt }}, _, _) ->
(Reason_syntax_util.parse_lid lbl) = txt
| _ -> false

(* We manually check the length of `Thing.map(foo, bar, baz`,
Expand Down

0 comments on commit 48027c3

Please sign in to comment.