Files
c3c/test/test_suite/errors/allocating_opt.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

interface TestProto
{
}
struct Test
{
void* abc;
}
fn void main()
{
TestProto z = mem::alloc(Test?); // #error: "$Type.kindof != OPTIONAL" violated: 'Expected a non-optional type'.
}