summaryrefslogtreecommitdiff
path: root/test/const-map.mnml
blob: 6942bbaaac437563e54487f7ba45421f9a083326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const map: [string][string or integer or bool] = [
  "first" = 1 <= 2,
  "second" = "two",
  "third" = "3",
  "fourth" = 4 > 3,
/*  "fifth" = (): void {
    return "5."
  },*/
  "sixth" = 20_000,
  "seventh" = 20.02,
  "eight" = [8, 9, 0],
]

const main: function = (input: [string][string or integer or bool]): string {
	return input["eight"][2]
}

main(input = map)