jacoco / jacoco/jacoco

Add validation test for Kotlin empty `when` with side effect in subject

Open
#2,039 0 comments 0 reactions 0 assignees View on GitHub

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

see https://youtrack.jetbrains.com/issue/KT-82844

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.