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.mnml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/const-function-if.mnml b/test/const-function-if.mnml
new file mode 100644
index 0000000..48fc4fb
--- /dev/null
+++ b/test/const-function-if.mnml
@@ -0,0 +1,9 @@
+const main: function = (input: string): void {
+ if (input == "hello") {
+ const bye: string = "bye"
+ }
+
+ return input
+}
+
+main(input = "hello")