summaryrefslogtreecommitdiff
path: root/test/const-function-if.mnml
diff options
context:
space:
mode:
Diffstat (limited to 'test/const-function-if.mnml')
-rw-r--r--test/const-function-if.mnml3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/const-function-if.mnml b/test/const-function-if.mnml
index 11883cd..2b62f8e 100644
--- a/test/const-function-if.mnml
+++ b/test/const-function-if.mnml
@@ -1,6 +1,7 @@
const main: function = (input: string): string {
if (input == "hello") {
const bye: string = "bye"
+ return input + bye
}
return input
@@ -11,3 +12,5 @@ const main2: function = (input: string): string {
return main(input = "hello")
}
+
+main(input = "hello")