Skip to content

fix: for loop statement incrementor will be processed in correct context #2839

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

HerrCai0907
Copy link
Member

Fixes: #2838
incrementor in for loop statement should be processed after executing body.

Fixes: AssemblyScript#2838
incrementor in for loop statement should be processed after executing body.
@HerrCai0907 HerrCai0907 requested a review from CountBleck April 10, 2024 02:37
Copy link
Member

@CountBleck CountBleck left a comment

Choose a reason for hiding this comment

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

LGTM, as long as nothing else breaks

@HerrCai0907 HerrCai0907 merged commit 64cba2e into AssemblyScript:main Apr 10, 2024
14 checks passed
@HerrCai0907 HerrCai0907 deleted the fix/2838 branch April 10, 2024 06:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR TS2454: Variable is used before being assigned.
2 participants