Files
c3c/test/test_suite/expressions/set_optional_through_member.c3
Christoffer Lerno 4fbb42833e - Crash when creating $Type* where $Type is an optional type #2848
- Crashes when using `io::EOF~!` in various unhandled places. #2848
2026-01-27 13:32:08 +01:00

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;
}