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.mnml8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/const-function-if.mnml b/test/const-function-if.mnml
index 48fc4fb..11883cd 100644
--- a/test/const-function-if.mnml
+++ b/test/const-function-if.mnml
@@ -1,4 +1,4 @@
-const main: function = (input: string): void {
+const main: function = (input: string): string {
if (input == "hello") {
const bye: string = "bye"
}
@@ -6,4 +6,8 @@ const main: function = (input: string): void {
return input
}
-main(input = "hello")
+const main2: function = (input: string): string {
+ const bye: string = main(input = "bye")
+
+ return main(input = "hello")
+}