Merge branch 'fix-wrong-wild-call' into 'dev'

Ensure that the right error is called when using the wild pattern incorrectly.

See merge request ligolang/ligo!565
This commit is contained in:
Sander 2020-04-12 13:54:18 +00:00
commit ce1b55e548

View File

@ -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 =