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

  return input
}

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

  return main(input = "hello")
}