mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
185 B
Plaintext
11 lines
185 B
Plaintext
bitstruct Foo : long
|
|
{
|
|
int a : 2..4;
|
|
uint b: 5..10;
|
|
}
|
|
fn int main()
|
|
{
|
|
Foo? d = { 1, 11 };
|
|
Foo.membersof[0].set(d, 3); // #error: You cannot assign to an optional value.
|
|
return 0;
|
|
} |