weird error message for list literals
It seems to interpret it as list[1]
The list syntax is list{1, 2, 3}: https://rescript-lang.org/docs/manual/latest/array-and-list#list
list[1] would conflict with let list = [1, 2, 3]; Array.get(list, 1)
I know the ambiguity, my point is that the error message is unintuitive
Ok, will improve the error message.
The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.