Merge branch 'reasonligo_missing_rpar' into 'dev'
ReasonLIGO: missing ')' error message. See merge request ligolang/ligo!380
This commit is contained in:
commit
71474e1b0d
@ -21,3 +21,18 @@ let%expect_test _ =
|
||||
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
|
||||
* 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' |} ] ;
|
||||
|
||||
|
@ -2636,7 +2636,7 @@ interactive_expr: True LPAR True VBAR
|
||||
## In state 220, spurious reduction of production expr -> base_cond__open(expr)
|
||||
##
|
||||
|
||||
<YOUR SYNTAX ERROR MESSAGE HERE>
|
||||
Missing `)`.
|
||||
|
||||
interactive_expr: True LPAR WILD
|
||||
##
|
||||
|
5
src/test/contracts/negative/missing_rpar.religo
Normal file
5
src/test/contracts/negative/missing_rpar.religo
Normal 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;
|
Loading…
Reference in New Issue
Block a user