You can’t create non-val contsructor parameters in data classes, e. g.
data class x(val z: String, x: String) : s(x)
is prohibited.
You can work this around by creating abstract properties and overriding them in data classes, and then yes, they will be taken into account.