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.mnml6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/const-function-if.mnml b/test/const-function-if.mnml
index 2b62f8e..7b71b8c 100644
--- a/test/const-function-if.mnml
+++ b/test/const-function-if.mnml
@@ -1,7 +1,7 @@
const main: function = (input: string): string {
if (input == "hello") {
const bye: string = "bye"
- return input + bye
+ return input + " " + bye
}
return input
@@ -10,7 +10,7 @@ const main: function = (input: string): string {
const main2: function = (input: string): string {
const bye: string = main(input = "bye")
- return main(input = "hello")
+ return input + main(input = "hello")
}
-main(input = "hello")
+main(input = "hello") => main2(input = $ + " ")