mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
16 lines
255 B
Plaintext
16 lines
255 B
Plaintext
enum Row : inline int { A, B, C, D, E, F }
|
|
|
|
int[3][6] m = {
|
|
[Row.E] = {
|
|
[0..3] = 1, // #error: The index must be less than the array length (which was 3)
|
|
},
|
|
[Row.F] = {
|
|
[1] = 2,
|
|
},
|
|
};
|
|
|
|
fn int main()
|
|
{
|
|
(void)m;
|
|
return 0;
|
|
} |