Closed atyrin closed 7 months ago
We consider K1's behaviour to be correct in this case, so there should be the override
keyword.
It can be implemented on Dokka's side. See K1 implementation for descriptors: https://github.com/JetBrains/kotlin/blob/5fba2962b9b5f6cb105fcd81dbd5f259cdd0db1d/core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.java#L138
public static boolean isOverride(@NotNull CallableMemberDescriptor descriptor) {
return !descriptor.getOverriddenDescriptors().isEmpty();
}
Currently, in K2 members implemented by delegation have their own pages and have no KDoc. In K1 they refer to overriden declarations.
It is blocked by https://youtrack.jetbrains.com/issue/KT-64833/Analysis-API-Members-implemented-by-delegation-have-no-overridden-symbols to implement it like in K1.
Also related: #3196
This has been unblocked and fixed upstream, just need to check it and write a test.
Note: in K2 if a class inherits a function from an interface, clicking on this function in the child should lead to the interface.
The PR #3440 can be resurrected, but not necessarily
With K1 the
JavaNetCookieJar
gotoverride
keyword and kdoc from the interfaceIn K2 both are missed:
Installation
Parent: https://github.com/Kotlin/dokka/issues/3328