Before we begin...
What happened?
$ zrc - << EOF
struct S { x: i32 }
fn f(x: S);
fn main() -> i32 {
f(0 as *void);
return 0;
}
EOF
[E3010] Error: expected `struct { x: i32 }` for argument `0`, got `*struct {}`
What version of Zirco are you running?
HEAD
How can this bug be reproduced?
See above.
What behavior did you expect?
The code should compile.
What actually happened?
The code does not compile, and prints an error message.
Additionally, that error message lacks labels.
Other Context
Workaround: Just write the cast yourself.
Before we begin...
What happened?
What version of Zirco are you running?
HEAD
How can this bug be reproduced?
See above.
What behavior did you expect?
The code should compile.
What actually happened?
The code does not compile, and prints an error message.
Additionally, that error message lacks labels.
Other Context
Workaround: Just write the cast yourself.