Struct member of type void crashes compiler
struct Foo {
void bar;
}
fn void main(String[] args) {
Foo foo;
}
Kind of unusual, but this crashes the compiler.
Fixed in 0.5.5
def Void = void;
struct Foo {
Void bar;
}
Is still an issue.
Thank you. Latest should have addressed this deficiency. There might be others lurking with Void* etc, but none that I found right now.
Is this working?
I found one more issue with distinct:
distinct Void = void;
struct Foo {
Void bar;
}
fn void main() {
Foo foo;
}
Ah that one is in 0.6.0
@cbuttner It should work ok in dev now.
I couldn't find any more related issues, so I'm considering this fixed now.