Merge branch 'reasonligo_missing_rpar' into 'dev'

ReasonLIGO: missing ')' error message.

See merge request ligolang/ligo!380
This commit is contained in:
Sander 2020-02-04 15:09:38 +00:00
commit 71474e1b0d
3 changed files with 21 additions and 1 deletions

View File

@ -21,3 +21,18 @@ 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' |} ] ;
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

@ -2636,7 +2636,7 @@ interactive_expr: True LPAR True VBAR
## In state 220, spurious reduction of production expr -> base_cond__open(expr) ## In state 220, 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;