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)
}