function returning type taking anonymous struct as argument has equal type name when types are not equal #21904
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
Milestone
Zig Version
0.14.0-dev.2126+e27b4647d
Steps to Reproduce and Observed Output
Expected Output
When I hit this error in a more complicated situation I realized it was from #21817, but only because i was already aware that change was going to happen. To someone who is unaware, this message is very odd because the types look to be the same.
I'm not sure exactly how to convey the two unique types. Maybe at the minimum using a note saying that different instantiations of anonymous unions create different types, or the struct name shouldn't be
.
but some generated name.The text was updated successfully, but these errors were encountered: