dokka icon indicating copy to clipboard operation
dokka copied to clipboard

[K2] Dokka generates a redundant page

Open vmishenev opened this issue 4 months ago • 1 comments

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.

image

K2: The signature of the function NamedDomainObjectContainerScope.getNamer leads to a dedicated page NamedDomainObjectContainerScope.getNamer It has the DRI NamedDomainObjectContainerScope.getNamer. image

vmishenev avatar Oct 14 '24 08:10 vmishenev