Is it possible, in some way, for a delegetad prope...
# getting-started
j
Is it possible, in some way, for a delegetad property to inherit the Kdoc of the original one?
Copy code
class Foo {
    /** some doc */
    var bar = ""
}

class Baz(val foo: Foo) {
    var bar by foo::bar
}
Here the Kdoc of
Baz.bar
is empty.
s
If you can inherit the property, you can inherit its docs that way. E.g.
Copy code
interface Foo {
    /** some doc */
    var bar: String
}

class Baz(val foo: Foo): Foo {
    override var bar by foo::bar
}
j
oh right, this could be an option!
thanks