mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
247 B
Plaintext
15 lines
247 B
Plaintext
struct Abc
|
|
{
|
|
int a;
|
|
int[*] b;
|
|
}
|
|
fn void test()
|
|
{
|
|
Abc y = {};
|
|
foreach (x : y.b) {} // #error: It is not possible to enumerate over a flexible
|
|
}
|
|
fn int main()
|
|
{
|
|
foreach (x : (Abc){}.b) {} // #error: it's a flexible array member
|
|
return 0;
|
|
} |