Let's say there's a class which primary constructor has the parameter param that I'd like to be resolved (linked to the actual parameter) within the doc block of the class.
/** Class A does something using [param].
@constructor constructs A with [param].
*/
class A (param: Int)
However, the inscription param is highlighted by the IDE saying that it cannot resolve symbol param.
Actually, dokka correctly finds the parameter if you reference it with
[param]in the@constructorparagraph, you can check that by inspecting the URL that appears in the assembled docs, which looks like:Seemingly, the warning about an unresolved reference is an issue with the IDE support for KDoc. Please report it at kotl.in/issue.
Another option is to use
@paramin the class KDoc: