dokka

In Kotlin documentation (KDoc), is it possible to link to a specific overloaded method?

久未见 提交于 2020-02-03 12:14:13
问题 Consider the class comment of this Kotlin class: /** * This class has two methods, one that takes one parameters ([foo]), * and another one that takes two parameters ([foo]). **/ class Clazz { /* Foo with one. */ fun foo(a: Int) { } /* Foo with two. */ fun foo(a: Int, b: Int) { } } I'd like the second link to point to the 2nd function ( the one with the two parameters ). Is this possible in the Kotlin documentation language? 回答1: Just found this answer: Note that KDoc does not have any syntax