Add validation test for Kotlin empty `when` with side effect in subject
Open
Nobody has claimed this yet.
component: test
language: Kotlin
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 1.2k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 23
Description
var a = 1
when (a++) {}
println(a) // Kotlin 2.0 - 2.3.0 prints 1, Kotlin 2.3.20 prints 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository’s existing Kotlin validation tests and the linked KT-82844 report. Add coverage for the empty when whose subject uses a++, and verify that the test records the expected behavior across the affected Kotlin versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100