给定以下代码
fun example() {}
fun example(name: String) {}
How can I reference a specific function? I.e. example()
or example(String)
?
Using [example]
I can't specify which exactly function I want.
给定以下代码
fun example() {}
fun example(name: String) {}
How can I reference a specific function? I.e. example()
or example(String)
?
Using [example]
I can't specify which exactly function I want.
现在你不能.Dokka在一个页面上生成一个函数的所有重载,链接指向该页面,因此你可以简单地将所需的重载指定为文本:"the one-argument重载[example]".
There is an open issue for adding the possibility to link to a specific overload, but we aren't too happy with the proposed syntax, so we don't have a definite plan to support this.