Kotlin codegen always creates new label for variables assignments
Open
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