https://kotlinlang.org logo
#announcements
Title
# announcements
u

uhe

02/15/2017, 10:17 AM
so I would assume this would be the correct interpretation:
Copy code
data class Report(val qualified: Int = 0,
                  val disqualified: Int = 0) {

    operator fun inc() = copy(qualified = qualified + 1)
    operator fun dec() = copy(disqualified = disqualified + 1)
}
3