d409f19 / d409f19/cellmata

Kotlin codegen always creates new label for variables assignments

Open
#174 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Kotlin
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The code generator should only create a new label if it encounters a variable declaration, not when it just sees a variable assignment.

The code in question is here https://github.com/d409f19/cellmata/blob/master/compiler/src/main/kotlin/visitors/codegen.kt#L748:L752

Contributor guide

No contributing guide indexed for this repository

Research direction

Open compiler/src/main/kotlin/visitors/codegen.kt at lines 748-752 and inspect how the code generator handles variable declarations versus assignments. Confirm that labels are created only for declarations, then verify that an assignment reuses the existing behavior without introducing a new label.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.