summaryrefslogtreecommitdiff
path: root/test/const-function.mnml
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-01-02 11:14:26 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-01-02 11:14:26 +0100
commit64f56807a090a2d3e7a565caf63cfd0e265b41ca (patch)
treebbedfcea6718d091575e6cb613b42ec67299c52f /test/const-function.mnml
parent02864c8c29aee80d59cbd7251046f77a3e8e4093 (diff)
intermediate parser commit
Diffstat (limited to 'test/const-function.mnml')
-rw-r--r--test/const-function.mnml6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/const-function.mnml b/test/const-function.mnml
new file mode 100644
index 0000000..1f77a73
--- /dev/null
+++ b/test/const-function.mnml
@@ -0,0 +1,6 @@
+const main: function = (input: string or integer): void {
+ const hello: string = input + " world!"
+ const bye: string = "bye!"
+
+ return hello + " " + bye
+}