ReasonLIGO: missing ')' error message.

This commit is contained in:
Sander Spies 2020-02-04 13:31:41 +01:00
parent 21c5055650
commit 795f0d4056
3 changed files with 22 additions and 1 deletions

View File

@ -21,3 +21,19 @@ let%expect_test _ =
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new * Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
* Check the changelog by running 'ligo changelog' |} ] ; * Check the changelog by running 'ligo changelog' |} ] ;
let%expect_test _ =
run_ligo_bad [ "compile-contract" ; "../../test/contracts/negative/missing_rpar.religo" ; "main" ] ;
[%expect {|
ligo: : Parse error in file "missing_rpar.religo", line 5, characters 0-3, after "m" and before "let":
Missing `)`.
{}
If you're not sure how to fix this error, you can
do one of the following:
* Visit our documentation: https://ligolang.org/docs/intro/what-and-why/
* Ask a question on our Discord: https://discord.gg/9rhYaEt
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
* Check the changelog by running 'ligo changelog' |} ] ;

View File

@ -2619,7 +2619,7 @@ interactive_expr: True LPAR True VBAR
## In state 219, spurious reduction of production expr -> base_cond__open(expr) ## In state 219, spurious reduction of production expr -> base_cond__open(expr)
## ##
<YOUR SYNTAX ERROR MESSAGE HERE> Missing `)`.
interactive_expr: True LPAR WILD interactive_expr: True LPAR WILD
## ##

View File

@ -0,0 +1,5 @@
type foo = big_map(int, int);
let test_case = (n: int, m: foo): foo => Big_map.update(23, Some(n), m
let z = 4;