summaryrefslogtreecommitdiff
path: root/test/const-function-if.mnml
blob: 2b62f8e55e7b9d5fe491b03b928418228fbb376c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const main: function = (input: string): string {
  if (input == "hello") {
	const bye: string = "bye"
    return input + bye
  }

  return input
}

const main2: function = (input: string): string {
  const bye: string = main(input = "bye")

  return main(input = "hello")
}

main(input = "hello")