diff options
Diffstat (limited to 'test/parentheses.mnml')
-rw-r--r-- | test/parentheses.mnml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/parentheses.mnml b/test/parentheses.mnml new file mode 100644 index 0000000..d18aee2 --- /dev/null +++ b/test/parentheses.mnml @@ -0,0 +1,17 @@ +const main: function = (input: string): string { + if ((input == "hello") or input == "bye") { + const bye: string = "bye" + } + + return input +} + +const main2: function = (input: string): string { + const bye: string = main(input = "bye") + + const test: bool = (5 > 6) and ((7 < 8) or (true != false)) + + const test2: string = ((main(input = "test") => main(input = $)) + "test2") + + return main(input = "hello") + bye +} |