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

Emit error diagnostic on negative array index #10187

Merged
merged 3 commits into from
Apr 2, 2023
Merged

Emit error diagnostic on negative array index #10187

merged 3 commits into from
Apr 2, 2023

Conversation

levimatheri
Copy link
Contributor

@levimatheri levimatheri commented Mar 22, 2023

Closes #9732

Microsoft Reviewers: Open in CodeFlow

@levimatheri
Copy link
Contributor Author

levimatheri commented Mar 22, 2023

FYI @jeskew. I will add some tests too.

Copy link
Contributor

@jeskew jeskew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help on this, @levimatheri!

Leaving this open for now per your comment about wanting to add tests.

@levimatheri
Copy link
Contributor Author

Thanks for your help on this, @levimatheri!

Leaving this open for now per your comment about wanting to add tests.

@jeskew I added a test for this. Lemme know if there's anything else I should add. Cheers!

Copy link
Contributor

@jeskew jeskew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeskew jeskew merged commit 5313ea9 into Azure:main Apr 2, 2023
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.

Negative array index expressions raise no errors
2 participants