Spot the bug in the retryCount property

from Extensions
Kotlin 2.4.10 beginner 4 min 1 issue to find

The retryCount property must read and update the Session state. Find the bug.

kotlin
data class Session(var retries: Int)

var Session.retryCount: Int
    get() = 0
    set(value) {
        println("requested=$value")
    }

fun main() {
    val session = Session(retries = 1)
    session.retryCount = 3
    println(session.retryCount)
    println(session.retries)
}
Open in playground
Report an error