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

Fix bug in redefinition compile error reporting #2353

Merged

Conversation

marcaddeo
Copy link
Contributor

This fixes a bug that caused the error reporting for redefinition compile errors to be reported "backwards" when the original and redefinition were differing types.

See #2350 for additional information.

@marcaddeo marcaddeo force-pushed the bug/redefinition-compile-error-reporting branch from 67594b4 to 4910eb3 Compare September 7, 2024 15:21
@casey
Copy link
Owner

casey commented Sep 9, 2024

Nice! Can you add a test which demonstrates the fix?

@marcaddeo
Copy link
Contributor Author

Nice! Can you add a test which demonstrates the fix?

Test added 👍🏻

This fixes the alias_shadows_recipe_after test so that the correct
results are expected.

This causes the test to now fail.
The original and redefined Name's were being properly swapped, but their
types weren't being swapped. This caused the error to report on the
wrong lines when the redefinition was between two different types, i.e.
alias and recipe.

Closes casey#2350
@marcaddeo marcaddeo force-pushed the bug/redefinition-compile-error-reporting branch from e95f003 to c334201 Compare September 10, 2024 23:34
@casey casey enabled auto-merge (squash) September 13, 2024 08:42
@casey casey merged commit 5fb514c into casey:master Sep 13, 2024
5 checks passed
@casey
Copy link
Owner

casey commented Sep 13, 2024

Nice, merged!

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.

2 participants