cx
cx copied to clipboard
can't initialize multidimensional arrays/slices with values
@corpusc commented on Jun 27
To Reproduce
- Enter this code: package main
func main() { var i [][]i32 = [][]i32{ {1, 2}, {3, 4} } }
- See error: c.cx:4: syntax error: unexpected LBRACE
Expected behavior No error
Desktop (please complete the following information):
- OS: Windows 10
- CX Version 0.7.0 full release
Adding [][]i32
before {1, 2}
and {3, 4}
compiles program without errors.