Skip to content

Add test for accessor docs of override properties (#4539)#4544

Open
vmishenev wants to merge 1 commit into
masterfrom
test/accessor-override-docs-4539
Open

Add test for accessor docs of override properties (#4539)#4544
vmishenev wants to merge 1 commit into
masterfrom
test/accessor-override-docs-4539

Conversation

@vmishenev

Copy link
Copy Markdown
Contributor

Adds a regression test for #4539.

open class Parent {
    /** parent property docs */
    open var v = 0
}
class Child : Parent() {
    /** child property docs */
    override var v = 0
}

The generated getter/setter DFunctions of an override property must inherit the documentation from the override, not from the overridden parent property. The DProperty itself is already correct — only the accessors regressed (between 2.3.0-dev-425 and 2.3.0-dev-426).

This PR contains the test only.

🤖 Generated with Claude Code

Reproduces #4539: getter/setter of an override property must inherit the
documentation from the override, not from the overridden parent property.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant