Files
c3c/test/test_suite/struct/struct_bad_member.c3
Christoffer Lerno 8b49e6c14d Rename def to alias.
2025-03-13 11:22:27 +01:00

20 lines
290 B
Plaintext

struct Foo {
void bar; // #error: Members cannot be of
}
alias Void = void;
struct Foo2 {
Void bar; // #error: Members cannot be of
}
distinct Void2 = void;
struct Foo3 {
Void2 bar; // #error: has unknown size
}
fn void main(String[] args) {
Foo foo;
Foo2 foo2;
Foo3 foo3;
}