summaryrefslogtreecommitdiff
path: root/test/parentheses.mnml
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-06 13:59:50 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-06 13:59:50 +0100
commit54b4040a8e46c4104e228264fa57b44d17e245c9 (patch)
tree938f077f1343ee018476bd1cf68924f9181143f1 /test/parentheses.mnml
parent7667162a20ebdedac14de88260df018b961548d4 (diff)
all current tests passing
Diffstat (limited to 'test/parentheses.mnml')
-rw-r--r--test/parentheses.mnml7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/parentheses.mnml b/test/parentheses.mnml
index d18aee2..f321700 100644
--- a/test/parentheses.mnml
+++ b/test/parentheses.mnml
@@ -1,6 +1,7 @@
const main: function = (input: string): string {
if ((input == "hello") or input == "bye") {
- const bye: string = "bye"
+ const bye: string = "bye"
+ return bye
}
return input
@@ -13,5 +14,7 @@ const main2: function = (input: string): string {
const test2: string = ((main(input = "test") => main(input = $)) + "test2")
- return main(input = "hello") + bye
+ return input + main(input = "hello") + bye + " " + test2
}
+
+main(input = "test") => main2(input = $)