dokka
dokka copied to clipboard
[K2] Dokka generates a redundant page
Dokka generates a redundant page in the case of an untrivial hierarchy when there is an intersected and overridden fake function/property.
From Gradle DSL`s codebase:
class NamedDomainObjectContainerScope<T : Any>
: NamedDomainObjectContainerDelegate<T>(), PolymorphicDomainObjectContainer<T>
abstract class NamedDomainObjectContainerDelegate<T : Any> : NamedDomainObjectContainer<T> {
override fun getNamer(): T? = null
}
interface PolymorphicDomainObjectContainer<T> : NamedDomainObjectContainer<T>
interface NamedDomainObjectContainer<T> {
fun getNamer(): T? = null
}
K1:
The signature of the function NamedDomainObjectContainerScope.getNamer
leads to NamedDomainObjectContainerDelegate.getNamer
.
It has the DRI NamedDomainObjectContainerDelegate.getNamer
.
K2:
The signature of the function NamedDomainObjectContainerScope.getNamer
leads to a dedicated page NamedDomainObjectContainerScope.getNamer
It has the DRI NamedDomainObjectContainerScope.getNamer
.