diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-14 19:42:32 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-14 19:42:32 +0200 |
| commit | 308a2addf655fe45f2098f8542f0ff1290612cd9 (patch) | |
| tree | 19230bdb673d306d59b32427ad2a3ad5e9850631 /testsuite/fail_compilation | |
| parent | a32a61813ebaecf0c1e69fd1481bf09d8c8b1420 (diff) | |
| download | elna-308a2addf655fe45f2098f8542f0ff1290612cd9.tar.gz | |
Replace procedure end with return
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. |
