mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
20 lines
290 B
Plaintext
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;
|
|
}
|