This is what I am trying in the REPL ```data clas...
# announcements
n
This is what I am trying in the REPL
Copy code
data class A(val foo: String?)

data class B(val bar: String?) : A(foo)
Copy code
error: function 'component1' generated for the data class conflicts with member of supertype 'A'
data class B(val bar: String?) : A(foo)
^
error: this type is final, so it cannot be inherited from
data class B(val bar: String?) : A(foo)
                                 ^
error: unresolved reference: foo