diff options
Diffstat (limited to 'testsuite/fail_compilation')
| -rw-r--r-- | testsuite/fail_compilation/local_const_exported.elna | 4 | ||||
| -rw-r--r-- | testsuite/fail_compilation/local_var_exported.elna | 4 | ||||
| -rw-r--r-- | testsuite/fail_compilation/module_without_return.elna | 6 |
3 files changed, 4 insertions, 10 deletions
diff --git a/testsuite/fail_compilation/local_const_exported.elna b/testsuite/fail_compilation/local_const_exported.elna index c914af5..1c6c728 100644 --- a/testsuite/fail_compilation/local_const_exported.elna +++ b/testsuite/fail_compilation/local_const_exported.elna @@ -1,6 +1,6 @@ proc test_local_export() const c* := 42 (* @Error Local symbol 'c' cannot be exported *) -begin -end +return + end. diff --git a/testsuite/fail_compilation/local_var_exported.elna b/testsuite/fail_compilation/local_var_exported.elna index 77b408c..5323e5e 100644 --- a/testsuite/fail_compilation/local_var_exported.elna +++ b/testsuite/fail_compilation/local_var_exported.elna @@ -1,6 +1,6 @@ proc test_local_export() var v* : Int (* @Error Local symbol 'v' cannot be exported *) -begin -end +return + end. diff --git a/testsuite/fail_compilation/module_without_return.elna b/testsuite/fail_compilation/module_without_return.elna deleted file mode 100644 index f2ece07..0000000 --- a/testsuite/fail_compilation/module_without_return.elna +++ /dev/null @@ -1,6 +0,0 @@ -var (* @Error Procedure 'module' is expected to return, but does not have a return statement *) - x: Int - -begin - x := 42 -end. |
