From 88c652a25fe4322d6db34cb870476080ab875c0f Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Tue, 26 May 2020 12:33:32 +0200 Subject: [PATCH] Fix issue caused by addition of PPar. --- src/passes/1-parser/reasonligo/Parser.mly | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/passes/1-parser/reasonligo/Parser.mly b/src/passes/1-parser/reasonligo/Parser.mly index 74417ee1e..fe3503328 100644 --- a/src/passes/1-parser/reasonligo/Parser.mly +++ b/src/passes/1-parser/reasonligo/Parser.mly @@ -501,7 +501,13 @@ fun_expr(right_expr): (arg_to_pattern fun_arg, []) | EPar {value = {inside = EFun { value = { - binders = PTyped { value = { pattern; colon; type_expr }; region = fun_region }, []; + binders = PPar { + value = { + inside = PTyped { value = { pattern; colon; type_expr }; region = fun_region }; + _ + }; + _ + }, []; arrow; body; _ @@ -535,7 +541,7 @@ fun_expr(right_expr): }; region; }, [] - | EPar {value = {inside = fun_arg; _ }; _} -> + | EPar {value = {inside = fun_arg; _ }; _} -> arg_to_pattern fun_arg, [] | EAnnot _ as e -> arg_to_pattern e, []