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

1
2
3
4
5
6
7
8
 
# spec: An invalid program with no fn keyword
main(): u32 {
  return 0
}
# compiler_exit: 1
# compiler_output: ./tests/0002_fn_without_fn_keyword.ol:2:1: error: got 'main' token but expect <fn>
# compiler_output: main(): u32 {
# compiler_output: ^
debug log:

solving f1ad57e ...
found f1ad57e 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/0002_fn_without_fn_keyword.ol b/tests/integration/tests/0002_fn_without_fn_keyword.ol
new file mode 100644
index 0000000..f1ad57e

Checking patch tests/integration/tests/0002_fn_without_fn_keyword.ol...
Applied patch tests/integration/tests/0002_fn_without_fn_keyword.ol cleanly.

index at:
100644 f1ad57ed29c77b414a85eb65c46bd0d9fe5ca4a0	tests/integration/tests/0002_fn_without_fn_keyword.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