From 6f0fb02bf65915e644c9ab4e765c95b7a5aec66d Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Sun, 12 Apr 2020 14:57:39 +0200 Subject: [PATCH] Ensure that the right error is called when using the wild pattern incorrectly. --- src/passes/1-parser/reasonligo.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passes/1-parser/reasonligo.ml b/src/passes/1-parser/reasonligo.ml index 38cde6edb..d1a5046dc 100644 --- a/src/passes/1-parser/reasonligo.ml +++ b/src/passes/1-parser/reasonligo.ml @@ -140,7 +140,7 @@ let parse (module IO : IO) parser = | exception SyntaxError.Error (SyntaxError.WrongFunctionArguments expr) -> Trace.fail @@ Errors.wrong_function_arguments expr | exception SyntaxError.Error (SyntaxError.InvalidWild expr) -> - Trace.fail @@ Errors.wrong_function_arguments expr + Trace.fail @@ Errors.invalid_wild expr let parse_file (source: string) = let module IO =