Skip to content

No compile error when returning incorrect aliased struct #3039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tetralux opened this issue Aug 10, 2019 · 2 comments
Closed

No compile error when returning incorrect aliased struct #3039

Tetralux opened this issue Aug 10, 2019 · 2 comments
Milestone

Comments

@Tetralux
Copy link
Contributor

This should have been a compile error:

https://github.com/Tetralux/zig/blob/24aea24c22627c415d81339749e8a94a7239af1a/std/http/headers.zig#L173

.iteratorConst returns a completely different struct to HttpList.Iterator...

Originally posted by @Tetralux in #3037 (comment)

@Tetralux
Copy link
Contributor Author

@andrewrk
Copy link
Member

can you come up with a reduction?

@andrewrk andrewrk added this to the 0.6.0 milestone Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants