Improved checks of aliased "void".

This commit is contained in:
Christoffer Lerno
2024-02-26 18:45:55 +01:00
parent 4ba033fc84
commit bae5d9c7f8
10 changed files with 30 additions and 20 deletions

View File

@@ -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;
}