public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
fe33d69ce4d5cdc5a9ac77068b56a2903bb9ab5a blob 273 bytes (raw)

1
2
3
4
5
6
7
8
 
# spec: An invalid program without return statment
# TODO: Improve the compiler error message
fn main(): u32 {
}
# compiler_exit: 1
# compiler_output: ./tests/0007_fn_without_return.ol:4:1: error: got '}' token but expect <return>
# compiler_output: }
# compiler_output: ^
debug log:

solving fe33d69 ...
found fe33d69 in http://lists.johnnyrichard.com/olang/20240512143033.229961-4-carlos@maniero.me/

applying [1/1] http://lists.johnnyrichard.com/olang/20240512143033.229961-4-carlos@maniero.me/
diff --git a/tests/integration/tests/0007_fn_without_return.ol b/tests/integration/tests/0007_fn_without_return.ol
new file mode 100644
index 0000000..fe33d69

Checking patch tests/integration/tests/0007_fn_without_return.ol...
Applied patch tests/integration/tests/0007_fn_without_return.ol cleanly.

index at:
100644 fe33d69ce4d5cdc5a9ac77068b56a2903bb9ab5a	tests/integration/tests/0007_fn_without_return.ol

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox