Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K2] Primary constructor parameter marked as property for derived class #4056

Open
atyrin opened this issue Mar 11, 2025 · 0 comments
Open
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Mar 11, 2025

abstract class Parent<out RowType : Any>(val name: (String) -> RowType)

abstract class Child<out RowType : Any>(name: (String) -> RowType) : Parent<RowType>(name)

K1

Image

K2 (new val keyword in primary constructor)

Image

works fine for parameter with non-matching name or for non-parametrized classes.

Installation

  • Dokka version: 2.0.0
@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

1 participant