Skip to content

Fix IndexLastListElement issues on assignments and var/out #339

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

fourls
Copy link
Collaborator

@fourls fourls commented Feb 26, 2025

This PR updates IndexLastListElement to ignore the left-hand side of expression statements. This is a current false-positive, since TList.Last is a function and is not eligible to be assigned to.

@fourls fourls requested a review from cirras February 26, 2025 06:11
Copy link
Collaborator

@cirras cirras left a comment

Choose a reason for hiding this comment

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

Looks good, can we get a CHANGELOG entry?

@fourls fourls force-pushed the list-last-assignment branch from 4be1a6d to 52442b4 Compare February 26, 2025 22:32
@fourls fourls requested a review from cirras February 26, 2025 22:32
@fourls
Copy link
Collaborator Author

fourls commented Feb 26, 2025

Oops! Forgot the changelog.

@cirras cirras merged commit 05188be into master Feb 26, 2025
4 checks passed
@cirras cirras deleted the list-last-assignment branch February 26, 2025 22:58
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