mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
20 lines
277 B
Plaintext
20 lines
277 B
Plaintext
struct Foo {
|
|
void bar; // #error: Members cannot
|
|
}
|
|
|
|
alias Void = void;
|
|
struct Foo2 {
|
|
Void bar; // #error: Members cannot
|
|
}
|
|
|
|
typedef Void2 = void;
|
|
struct Foo3 {
|
|
Void2 bar; // #error: has unknown size
|
|
}
|
|
|
|
fn void main(String[] args) {
|
|
Foo foo;
|
|
Foo2 foo2;
|
|
Foo3 foo3;
|
|
}
|