summaryrefslogtreecommitdiff
path: root/test/parentheses.mnml
blob: d18aee23dd5f3bcf36b06e3c070642d939c64be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}