Skip to content
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

Disallow function redef with different returns but same parameters #1978

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

evantypanski
Copy link
Contributor

Fixes #1977

C++ doesn't allow different return types with equivalent parameters, so Spicy should grab that and error before it gets to the C++ error.

Fixes #1977

C++ doesn't allow different return types with equivalent parameters, so
Spicy should grab that and error before it gets to the C++ error.
@bbannier bbannier merged commit 09081d3 into main Mar 3, 2025
20 checks passed
@bbannier bbannier deleted the topic/etyp/fn-redef-fail branch March 3, 2025 16:18
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

Successfully merging this pull request may close these issues.

Defining the same identifier twice leads to a large error trace
2 participants