mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Improved checks of aliased "void".
This commit is contained in:
@@ -2,6 +2,11 @@ struct Foo {
|
||||
void bar; // #error: Members cannot be of
|
||||
}
|
||||
|
||||
def Void = void;
|
||||
struct Foo2 {
|
||||
Void bar; // #error: Members cannot be of
|
||||
}
|
||||
fn void main(String[] args) {
|
||||
Foo foo;
|
||||
Foo2 foo2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user