summaryrefslogtreecommitdiff
path: root/test/const-function.mnml
diff options
context:
space:
mode:
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
+}