diff options
Diffstat (limited to 'testsuite/fail_compilation/assign_void_call.elna')
| -rw-r--r-- | testsuite/fail_compilation/assign_void_call.elna | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/assign_void_call.elna b/testsuite/fail_compilation/assign_void_call.elna new file mode 100644 index 0000000..d18b1c8 --- /dev/null +++ b/testsuite/fail_compilation/assign_void_call.elna @@ -0,0 +1,9 @@ +var + x: Int + +proc v() +return + +begin + x := v() (* @Error Expected type 'Int', but the expression has no value *) +end. |
