Kotlin Data class Unresolved reference error when access to property
I am new with Kotlin and maybe it is a basic question, I have to access the properties from a data class, this is the data class:
data class Success(
val bugs: Int,
val fixed: Int,
) : Success
What I am trying to do is just trying to access the value from bugs and fixed, such as:
fun process(data: Success) : String {
data.bugs
return ""
}
And I am getting the next error:
Unresolved reference: bugs
Any ideas? As far as I know val generates getters to access the property, but...