array_inline.out
 1  {
 2    "Array": {
 3      "elements": [],
 4      "span": {
 5        "lo": 0,
 6        "hi": 2
 7      },
 8      "id": 0
 9    }
10  }
11  
12  {
13    "Array": {
14      "elements": [],
15      "span": {
16        "lo": 3,
17        "hi": 6
18      },
19      "id": 0
20    }
21  }
22  
23  Error [EPAR0370005]: expected ']' -- found ','
24      --> test_2:1:3
25       |
26     1 | [,,]
27       |   ^
28  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', ']', 'true', 'false', 'async', 'block', 'network', 'self' -- found ','
29      --> test_3:1:4
30       |
31     1 | [0,,]
32       |    ^
33  Error [EPAR0370005]: expected ']' -- found '0'
34      --> test_4:1:3
35       |
36     1 | [,0]
37       |   ^
38  Error [EPAR0370005]: expected ']' -- found '0'
39      --> test_5:1:3
40       |
41     1 | [,0,]
42       |   ^
43  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', ']', ',', 'true', 'false', 'async', 'block', 'network', 'self' -- found ';'
44      --> test_6:1:2
45       |
46     1 | [;]
47       |  ^
48  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', ']', ',', 'true', 'false', 'async', 'block', 'network', 'self' -- found ';'
49      --> test_7:1:2
50       |
51     1 | [;;]
52       |  ^
53  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', 'true', 'false', 'async', 'block', 'network', 'self' -- found ';'
54      --> test_8:1:4
55       |
56     1 | [0;;]
57       |    ^
58  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', ']', ',', 'true', 'false', 'async', 'block', 'network', 'self' -- found ';'
59      --> test_9:1:2
60       |
61     1 | [;0]
62       |  ^
63  Error [EPAR0370005]: expected an identifier, a program id, an address literal, an integer literal, a static string, '!', '-', '(', '[', ']', ',', 'true', 'false', 'async', 'block', 'network', 'self' -- found ';'
64      --> test_10:1:2
65       |
66     1 | [;0;]
67       |  ^