2020-02-03 10:53:44 +01:00
|
|
|
open Cli_expect
|
|
|
|
|
|
|
|
let%expect_test _ =
|
|
|
|
run_ligo_bad [ "compile-contract" ; "../../test/contracts/negative/gitlab_111.religo" ; "main" ] ;
|
|
|
|
[%expect {|
|
2020-02-03 14:03:47 +01:00
|
|
|
ligo: : Parse error in file "gitlab_111.religo", line 2, characters 0-3, after "=" and before "let":
|
2020-03-10 16:39:05 +01:00
|
|
|
This is an incorrect let binding.
|
|
|
|
-
|
|
|
|
Examples of correct let bindings:
|
|
|
|
let a: int = 4;
|
|
|
|
let (a: int, b: int) = (1, 2);
|
|
|
|
let func = (a: int, b: int) => a + b;
|
|
|
|
{}
|
2020-02-03 10:53:44 +01:00
|
|
|
|
2020-02-03 11:57:37 +01:00
|
|
|
|
2020-02-03 10:53:44 +01:00
|
|
|
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' |} ] ;
|
|
|
|
|
2020-02-04 13:31:41 +01:00
|
|
|
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":
|
2020-03-10 16:39:05 +01:00
|
|
|
Missing `)`.
|
|
|
|
{}
|
2020-02-04 13:31:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
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' |} ] ;
|
|
|
|
|