Can I refer to a specific overload function?

Given the following code

fun example() {} fun example(name: String) {} 

How can I refer to a specific function? That is, example() or example(String) ?

Using [example] I cannot specify which function I want.

+5
source share
1 answer

You cannot at this time. Dokka generates all function overloads on one page, and the link points to this page, so you can simply specify the overload you need as text: "overload with one argument [example]".

There is an open problem to add the ability to reference a specific overload, but we are not too happy with the proposed syntax, so we do not have a specific plan to support this.

+4
source

All Articles